sha*_*r_m 11 matlab plot save figure
有没有一种方法可以在没有实际绘图的情况下保存图形图?我的意思是,假设我要保存图表plot(1:10, (1:10).^2),我可以保存它而不显示它吗?
plot(1:10, (1:10).^2)
我希望通过切断不必要的数字绘图来缩短运行时间(保存后无论如何都会关闭).
谢谢!
Chr*_* A. 16
这可以做到:
set(gcf,'Visible','off'); plot((1:10),(1:10).^2); print -dpng c:\chris.png % or whatever your print command is
小智 7
还有一种saveas(h,'filename.ext')功能可以保存某些格式的数字.
saveas(h,'filename.ext')
归档时间:
15 年,1 月 前
查看次数:
17272 次
最近记录:
13 年,10 月 前