필터 지우기
필터 지우기

How to show an updating image generated by "drawnow" in GUI axes1

조회 수: 3 (최근 30일)
Wenlong
Wenlong 2014년 5월 29일
댓글: Image Analyst 2014년 5월 30일
Hi All, I would like to show an updating image generated by "drawnow" in GUI axes1. This is my code:
function Start_Callback(hObject, eventdata, handles)
set(handles.Start,'string','Running','enable','off');
QuasiBrownianMotion_Co_TimeControl_forGUI;
axes(handles.axes1);
drawnow;
% Update handles structure
guidata(hObject, handles);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
"QuasiBrownianMotion_Co_TimeControl_forGUI" is a function I used to generate images.
The problem right now is whenever I run GUI and hit start button. Matlab always pop out another new image window to show the images instead of showing within axes1. Could anyone help me out? Thanks a lot! Wenlong
  댓글 수: 7
Geoff Hayes
Geoff Hayes 2014년 5월 29일
편집: Geoff Hayes 2014년 5월 29일
Hi Wenlong - You can attach your *.m and *.fig files to any comment you add to your question. Just use the paperclip button to do so.
Wenlong
Wenlong 2014년 5월 30일
Sorry! I am a rookie. I will attach the files tomorrow morning since they are in my office computer. Thanks again!

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

채택된 답변

Image Analyst
Image Analyst 2014년 5월 29일
Search your code for "figure" - perhaps you're calling figure which is causing a brand new figure to be created instead of causing the image to appear in an axes control on your existing GUI figure.
  댓글 수: 2
Wenlong
Wenlong 2014년 5월 29일
Hi Thanks for your answer! The problem is that I am not be able to find a "figure" variable in the code. If there is a "figure" variable, I know we can handle it by using "imshow". If you can provide me an email box, I can send you my .m files. Thanks! Wenlong
Image Analyst
Image Analyst 2014년 5월 30일
I don't have an email address. You can attach m-files and fig files here with the paper clip icon. Or you can step through your code a line at a time to find out where the "pop out another new image window" happens exactly.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by