필터 지우기
필터 지우기

Problem with Matlab GUI ??

조회 수: 1 (최근 30일)
nayomi ranamuka
nayomi ranamuka 2011년 9월 30일
I have loaded an image to GUI. Now I've to load the image to next GUI when a button press on previous GUI. Any body can help me??
function Preprocessing_Callback(hObject, eventdata, handles)
% hObject handle to Preprocessing
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data
openfig('preprocessing.fig'); %%Open new figure
  댓글 수: 3
nayomi ranamuka
nayomi ranamuka 2011년 9월 30일
Next gui means the next window which shows an image in previous window. Because I make some changes for an image in first window and I have to display it on new window when a button press.
nayomi ranamuka
nayomi ranamuka 2011년 9월 30일
Is there any method pass argument from a window(interface) to next window?

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

답변 (1개)

Walter Roberson
Walter Roberson 2011년 9월 30일
Is there any method pass argument from a window(interface) to next window? No -- windows and GUIs and figures do not take arguments, only functions (including methods) take arguments.
You can, though, put something in a place that the code for the second GUI knows where to look for it. For example, you can save the figure number returned by openfig() and you can guidata() that figure to get its handles structure, store the data, and guidata() to save it back.

카테고리

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