Save a figure to the current directory in two formats (*.fig and *.eps).
filename = saveFigure(figure)
filename = saveFigure(figure, filename)
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.
figure - Figure to be saved
filename - (Optional) String containing filename
filename - Filename
>> 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