Saves current, all, or specified figures with specified filename[-prefix]
and format[, numbered according to figure-handle].
save_figure(fn_prefix, fmt, 'all')
save_figure(fn_prefix, fmt, handles)
'fn' is the filename (without extension)
'fmt' is the output format ('eps', 'pdf', or 'png')
'fn_prefix' is the filename-prefix
'handles' is a vector of figure-handles to save
the current figure is saved as 'fig.eps'
the current figure is saved as 'foo.eps'
>> save_figure('bar', 'png')
the current figure is saved as 'bar.png' (300 DPI)
>> save_figure('fig_', 'eps', 'all')
all figures are saved as EPS-files named
"fig_<figure handle>.eps" (e.g. "foo_01.eps").
>> save_figure('fig_', 'pdf', [1 2 7])
figures 1, 2, and 7 are saved as PDF-files named
"fig_<figure handle>.pdf" (e.g. "fig_07.pdf").
If fmt=='pdf', for better layout, every figure is first saved in
EPS-format. The exported EPS-file is then converted to PDF-format
using the ps2pdf utility (Ghostscript package). Thereafter, the
exported EPS-file is removed.
If fmt=='png', for better layout, every figure saved in
EPS-format, converted to PDF-format (see above), and then
rasterised using the convert utility (Imagemagick or
Graphicsmagick package). Thereafter, temporary files are removed.