필터 지우기
필터 지우기

Saving a figure without menu?

조회 수: 7 (최근 30일)
thomas mann
thomas mann 2013년 8월 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?

채택된 답변

Jan
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
Jan
Jan 2013년 8월 30일
편집: Jan 2013년 8월 30일
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 2013년 8월 31일
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.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Azzi Abdelmalek
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
thomas mann
thomas mann 2013년 8월 30일
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 2013년 8월 30일
Try this
set(gcf,'menubar','figure')

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by