Graphics    

Exporting to a File

You can export a figure to a file in a specific graphics format from the Windows or UNIX Export dialog box or from the command line.

From the Windows or UNIX Export Dialog Box

Use the Export dialog box to select a file format, specify a filename, and navigate to a directory in which you want to save your file. To invoke the Export dialog box, select Export from the figure's File menu.

See Frequently Used Graphics Formats.

From the Command Line

Use the print command to export the figure in graphics format.

where the command arguments are:

-device
The graphics format, such as EPS color or JPEG 24-bit, used to draw the figure in the file. See Frequently Used Graphics Formats. See the print reference page for a complete list of supported graphics formats.
-options
Specifies options that control some aspects of the look of the exported figure. You can also specify the figure to be exported. Unlike the properties you set with the set function, these values are not saved with the figure. You must specify them each time you export the figure. Commonly used options are:

-fhandle
Handle of the figure to export. For Figure No. 2, specify -f2. The default is the current figure.

-noui
Suppress printing of uicontrols.

-rnumber
Resolution in dots per inch.

See the print reference page for a complete list of supported options.
filename
Specifies the name of the file to which the figure is exported. If you do not specify a file extension, print appends an extension that is appropriate for the graphics-format.


 Exporting a Figure in Graphics Format Exporting to the Clipboard