Problem with Matlab GUI ??
Mostrar comentarios más antiguos
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 comentarios
Jan
el 30 de Sept. de 2011
Please post more deatils. It is not possible to guess, what "next GUI" exactly means: Should it be created or is it existing? Do you know the handle or must it be searched? Is there an existing AXES object to display the image in, or must it be created?
nayomi ranamuka
el 30 de Sept. de 2011
nayomi ranamuka
el 30 de Sept. de 2011
Respuestas (1)
Walter Roberson
el 30 de Sept. de 2011
0 votos
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.
Categorías
Más información sobre Environment and Settings en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!