Name
xs2jpg — send graphics to a JPG file.
Calling Sequence
xs2jpg(win_num, file_name)
xs2jpg(fig, file_name)
Parameters
- win_num
integer, id of the figure to export.
- fig
handle of the figure to export.
- file_name
string, name of the exported file.
Description
xs2jpg
exports the display of a graphic window into a JPG file.
Examples
scf(0);
plot2d();
//JPG export
xs2jpg(0,'foo.jpg');
xs2jpg(gcf(),'foo.jpg');