How do I make my GUI plot inside of a new figure in MATLAB rather than into an axes within the GUI figure?

조회 수: 1 (최근 30일)
How do I make my GUI plot inside of a new figure in MATLAB rather than into an axes within the GUI figure?
Actually I am able to make a plot into the GUI axes which I have made but I want to save that graph.It is only possible when it is in other new figure.Could you please help me regarding this?
When I used this command- set(hObject,'toolbar','figure'); guidata(hObject, handles);
it will save the whole GUI figure instead of only graph.
Could you please suggest any way so that I can save only my graph instead of whole gui figure?
Thanks
Arif

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 10월 19일
In your code, before running the plot, create a new figure, like
f=figure;
plot(magic(10));
saveas(f,...);
  댓글 수: 3
Fangjun Jiang
Fangjun Jiang 2011년 10월 19일
saveas(f,'logo','fig'). Type help saveas to see the syntax of saveas()

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by