필터 지우기
필터 지우기

How can I update (refresh) data on figure?

조회 수: 8 (최근 30일)
Tomislav
Tomislav 2012년 11월 29일
I have GUI with 4 axes, and I have removed one axes and running it in separate figure window, on button press. When I change data in GUI I need to be able to refresh data in that figure, again on button press. Now, every time I press the button it opens a new figure window instead of ploting on the already opened one.
My code:
figure('Name','Sections','NumberTitle','off','Colormap',gray,'Position',[600 100 600 600])
handles.vol=evalin('base','vol');
s1=round(get(handles.slider2,'value'));
s2=round(get(handles.slider1,'value'));
s3=round(get(handles.slider3,'value'));
hslc=slice(handles.vol,s1,s2,s3);%rotate3d on;
axis tight; set(hslc(1:3),'LineStyle','none');
xlabel 'x' ;ylabel 'y' ;zlabel 'z';
Thanks.

채택된 답변

Image Analyst
Image Analyst 2012년 11월 29일
Just don't call the figure() function after the first time. Also you might be interested in the FAQ
  댓글 수: 1
Tomislav
Tomislav 2012년 11월 29일
That would work too, in meantime I've created another gui witch has one axes and is called on button press.
Thanks

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Visual Exploration에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by