Can I use push button to open another GUI in app designer, how?
15 views (last 30 days)
Show older comments
Hasan Alamoudi
on 1 Nov 2021
Commented: Hasan Alamoudi
on 2 Nov 2021
I'm building a program using app designer that ask the user to choose between two options and if the user choose the first option (press the push button) a GUI open and if the user choose the second option (the other push button) another GUI open.
0 Comments
Accepted Answer
Cris LaPierre
on 1 Nov 2021
3 Comments
Cris LaPierre
on 2 Nov 2021
Edited: Cris LaPierre
on 2 Nov 2021
If you are not needing to pass any information between the two, it should be as simple as placing the app name in the corresponding callback function. As long as the second app is either in the same folder or in a folder on the MATLAB path, having the name in the code will launch it.
If I had a second app I wanted to open named evaluate.mlapp, the code I would add to the callback function in the first app would be
% start new app
evaluate
% close current app
close(app.UIFigure)
More Answers (0)
See Also
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!