I want to save figures from script. I have tried "savefig" and "saveas" but these commands don't work in R2011b. How can I solve this problem?
2 次查看(过去 30 天)
显示 更早的评论
I want to save figures from script. I have tried "savefig" and "saveas" but these commands don't work in R2011b. How can I solve this problem?
0 个评论
回答(1 个)
Azzi Abdelmalek
2015-8-10
saveas works with Matlab 2011, maybe you are not using it correctly. Try this example
t=0:0.1:10
y=sin(t)
plot(t,y)
saveas(gcf,'filename.jpg')
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Printing and Saving 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!