Can I use push button to open another GUI in app designer, how?

15 views (last 30 days)
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.

Accepted Answer

Cris LaPierre
Cris LaPierre on 1 Nov 2021
  3 Comments
Cris LaPierre
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)
Hasan Alamoudi
Hasan Alamoudi on 2 Nov 2021
Yes, there is no information to pass. It is like a menu.
Thanks. This is what I was looking for.

Sign in to comment.

More Answers (0)

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!