The file created is (MATLAB Functions) MATLAB Function ReferenceĪs an alternative to the save function, select Save Workspace As from the File menu in the MATLAB desktop, or use the Workspace browser.īy itself, stores all workspace variables in a binary format in the current directory in a file named matlab.mat. From the table for print device types, you can see the device type for this format is -dtiffn. In another example, save the current model to the file trans.tiff using the TIFF format with no compression. If you use doc print or help print, you can see from the table for print device types that the device type for this format is -dpsc2. Save the current figure to the file star.eps using the Level 2 Color PostScript format. MATLAB automatically appends the ai extension, for an Illustrator format file, because no extension was specified.Įxample 3 - Specify File Format and Extension This is the same as using the Adobe Illustrator format from the print devices table, which is -dill use doc print or help print to see the table for print device types. Use the ai extension from the above table to specify the format. Save the current figure, using Adobe Illustrator format, to the file logo. This allows you to open the file pred_prey.fig at a later time and continue editing it with the Plot Editor.Įxample 2 - Specify File Format but No Extension Save the current figure that you annotated using the Plot Editor to a file named pred_prey using the MATLAB fig format. The Export dialog box you access from the figure window's File menu uses saveas with the format argument. The Save As dialog box you access from the figure window's File menu uses saveas, limiting the file extensions to m and fig. You can use open to open files saved using saveas with an m or fig extension. When using the print device type to specify format for saveas, do not use the prepended -d. Use an extension from the table above or from the list of device types supported by print. The print device types include the formats listed in the table of extensions above as well as additional file formats. If no extension is specified, the standard extension corresponding to the specified format is automatically appended to the filename.Īllowable values for format are the extensions in the table above and the device types supported by print. The filename can have an extension but the extension is not used to define the file format. Saves the figure or model with the handle h to the file called filename using the specified format. MATLAB M-file (invalid for MATLAB models) MATLAB figure (invalid for MATLAB models) Allowable values for ext are listed in this table. The format of the file is determined by the extension, ext. Saves the figure or model with the handle h to the file filename.ext. Save figure or model using specified format Saveas (MATLAB Functions) MATLAB Function Reference
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |