使用print函数:
例如,t=1:100
plot(t,sin ) t );
print(GCF,'-dpng ',' sin.png ';
使用saveas
例如,t=1:100;
plot(t,sin ) t );
saveas(GCF,' my_picture.bmp ',' bmp ' );
print('-depsc ','-tiff ','-r300 ',' picture1.eps ' )
符合dpi的要求
saves the current figure at 300 dpi,in a color Encapsulated
dpi TIFF preview,whichmanywordprocessorapplicationscan
displayonscreenafteryouimporttheepsfile.thisenablesyou
toviewthepictureonscreenwithinyourwordprocessorandprint
thedocumenttoapostscriptprinterusingaresolutionof 300
dpi。