Desktop Tools and Development Environment |
Printing M-Files
To print an entire M-file, select File -> Print, or click the Print button on the toolbar. To print the current selection, select File -> Print Selection. Complete the standard print dialog box that appears.
Specify printing options for the Editor/Debugger by selecting File -> Page Setup. For example, you can specify printing with a header. For more information, see Printing and Page Setup Options for Desktop Tools.
Closing M-Files
To close the current M-file, select Close filename from the File menu, or click the Close box in the Editor/Debugger menu bar. This is different from the Close box in the titlebar of the Editor/Debugger, which closes all open files in that Editor/Debugger window.
To close all files within the Editor/Debugger, select Window -> Close Editor Documents. This does not close any files undocked from the Editor/Debugger. The Editor/Debugger remains open with no files in it.
If each file is open in a separate window, close all the files at once using the Close All Documents item in the Window menu. Note that this also closes desktop documents of all types, including Array Editor documents.
When you close a file that has unsaved changes, you are prompted to save the file. If you do not want to be prompted, hold Ctrl and click the Close box. The prompt will not appear and the document will close without saving any unsaved changes.
Running M-Files from the Editor/Debugger | Debugging M-Files |
© 1994-2005 The MathWorks, Inc.