Package app with multiple GUIs (GUIDE)
Mostrar comentarios más antiguos
Recently I shared my first application in Mathworks that consists of a GUI that calls another GUI’s. When I have installed the app and tried the pushbuttons that call the other GUI’s, this error message appears: Undefined function or variable; and users who have downloaded it, reports the same error message.
I tried to put the other GUI’s in a “private” folder and change the search path, but the error message still appears.
I'm working with Matlab 2018b
Any help is greatly appreciated!
4 comentarios
Adam
el 8 de Ag. de 2019
How do you launch your other GUIs? Are they included in the packaged app? The dependency checker will not pick them up if they are launched using a string or something similar. You would have to manually add them to the file list in that case.
Patricia Haro
el 8 de Ag. de 2019
Adam
el 8 de Ag. de 2019
Presumably your error message tells you which 'function or variable' is undefined. Is it the GUI you are trying to launch or something else?
Patricia Haro
el 9 de Ag. de 2019
Respuestas (1)
Subhadeep Koley
el 12 de Ag. de 2019
Hi Patricia,
In the Callback of the push button paste only the name (without any extension) of the next GUI where you want to navigate (See example below).
function pushbutton1_Callback(hObject, eventdata, handles)
your_GUI;
end
Also, in the Application Compiler under the “Files required for your application to run” tab add all the necessary .m files required to run the application.
1 comentario
Patricia Haro
el 13 de Ag. de 2019
Categorías
Más información sobre Migrate GUIDE Apps en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
