Saving a figure without menu?
2 次查看(过去 30 天)
显示 更早的评论
There is a figure('Menu','none') and a plot inside that figure. nothing else. is it possible to save it in .fig or .jpg? or extract data?
0 个评论
采纳的回答
Jan
2013-8-30
You can export the figure's contents by commands written to the command window or from inside a script or function. See help print and help saveas. It would be easy to active the menubar also, as Azzi has shown already.
3 个评论
更多回答(1 个)
Azzi Abdelmalek
2013-8-30
编辑:Azzi Abdelmalek
2013-8-30
x=0:0.1:10;
y=sin(x)
h=plot(x,y)
saveas(h,'filename.jpg')
2 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Specifying Target for Graphics Output 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!