Graphics |
After editing a graph, you can
Saving a Graph in MAT-File Format
Note To save a figure in a format that is compatible with MATLAB versions before MATLAB 7, refer to "Plot Objects and Backward Compatibility" on page 8-20 for more information. |
MATLAB supports a binary format in which you can save figures so that they can be opened in subsequent MATLAB sessions. MATLAB assigns these files the .fig
filename extension.
To save a graph in a figure file,
The graph is saved as a figure file (.fig
), which is a binary file format used to store figures.
You can also use the saveas
command.
Use the hgsave
command to create backward compatible Fig-Files.
If you want to save the figure in a format that can be used by another application, see Saving to a Different Format -- Exporting Figures.
Opening a Figure File
To open a figure file, perform these steps:
You can also use the open
command.
Saving to a Different Format -- Exporting Figures
To save a figure in a format that can be used by another application, such as the standard graphics file formats TIFF or EPS, perform these steps:
Copying a Figure to the Clipboard
On Windows systems, you can also copy a figure to the clipboard and then paste it into another application:
Selecting Objects in a Graph | Printing Figures |
© 1994-2005 The MathWorks, Inc.