首页 > 编程知识 正文

matlab自动保存图像,matlab生成图片如何保存

时间:2023-05-06 14:37:24 阅读:20925 作者:4966

使用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。

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。