Saving a figure without menu?

3 views (last 30 days)
thomas mann
thomas mann on 30 Aug 2013
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?

Accepted Answer

Jan
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
Jan
Jan on 30 Aug 2013
Edited: Jan on 30 Aug 2013
No, figures can be accessed freely from Matlab. If you explain the intention of this question, a more detailed answer would be possible.
thomas mann
thomas mann on 31 Aug 2013
i create a gui, which can plot some curve in a different figure, which is set Menu to none. i dont want others to save the results.

Sign in to comment.

More Answers (1)

Azzi Abdelmalek
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
thomas mann
thomas mann on 30 Aug 2013
sorry, you didnt get it. i already have a figure with no menu with a plot. i dont know the handle of the plot, it wasnt created by me but a gui.
Azzi Abdelmalek
Azzi Abdelmalek on 30 Aug 2013
Try this
set(gcf,'menubar','figure')

Sign in to comment.

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!