export graphics to PNG
xs2png(win_num, file_name) xs2png(fig, file_name)
an integer, ID of the figure to export.
handle of the figure to export.
a string, name of the exported file.
xs2png exports the display of a graphic window into a PNG file.
xs2png
scf(0) plot2d() //PNG export xs2png(0,'foo.png'); xs2png(gcf(),'foo.png');