Saving a figure without menu?
3 views (last 30 days)
Show older comments
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 Comments
Accepted Answer
Jan
on 30 Aug 2013
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 Comments
More Answers (1)
Azzi Abdelmalek
on 30 Aug 2013
Edited: Azzi Abdelmalek
on 30 Aug 2013
x=0:0.1:10;
y=sin(x)
h=plot(x,y)
saveas(h,'filename.jpg')
2 Comments
See Also
Categories
Find more on Specifying Target for Graphics Output in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!