Problem with Matlab GUI ??
1 次查看(过去 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
回答(1 个)
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!