saveFigure()
Save a figure to the current directory in two formats (*.fig and *.eps).
Syntax
filename = saveFigure(figure)
filename = saveFigure(figure, filename)
Description
saveFigure(figure) generates a filename and saves the figure
figure to the associated file.
saveFigure(figure, filename) saves the figure
figure to the file filename.
Input:
figure - Figure to be saved
filename - (Optional) String containing filename
Output:
filename - Filename
Example
>> filename = saveFigure(gcf)
saves the current figure (figure
that has the focus) to the current directory. Matlab returns the filename of
the created file.
filename = 20030122T222025
In fact, this filename is a
combination of the saving date and saving time. This example
was stored on 22.01.2003 at 25 seconds past 22:20 and the current
directory contained the files: 20030122T222025.eps and 20030122T222025.fig
See also
displayTopology(),
displayEvolution()
|