GUI
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to draw a figure in existing GUI window?tell me the way to approch
댓글 수: 0
채택된 답변
Jan
2012년 2월 23일
A GUI is a figure. A figure cannot be a child of a figure. Therefore it is not clear, what you want to achieve. Please explain, what "draw a figure" exactly means.
Perhaps you want a uipanel?
추가 답변 (2개)
nanren888
2012년 2월 23일
What created the GUI? If you created it, then you have the figure number (handle). Seems even if it is a GUIDE one, it shows up in get(0,'children');
Tannistha
2012년 2월 23일
| by drawing a figure i am assuming u mean to plot something in the window? In order to plot anything in the gui figure window, u need to define the axis beforehand and get the handle of the axis. Then you can plot whatever u want in the axis. even if u want to draw some image using imdraw. u need to define the axis on which u want to draw.
Rest, agree with Jan. A figure cannot be a child of figure.
댓글 수: 2
Walter Roberson
2012년 3월 1일
If you are displaying pre-defined images then you want image() rather than imdraw().
참고 항목
카테고리
Help Center 및 File Exchange에서 Graphics Object Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!