Clear Filters
Clear Filters

How Can I open a matlab app from another matlab app?

59 views (last 30 days)
I have a matlab app that has various gui components. there are sections in that main page of the app though wehre when you press a button i want it to open up another standalone matlab app. there are three buttons that need to open 3 standalone matlap appps. and also is there a way to package all these apps together in one download file so that when i redistribute this app it will automatically download the 4 apps

Answers (1)

Saffan
Saffan on 30 May 2023
Hi Justin,
You can open other standalone MATLAB apps of the format .mlapp from the button callback function of the main app in the following way as shown in the sample code snippet:
% Button pushed function: app1Button`
function openApp1(app, event)
app1;
end
Follow these steps to package all the apps in a single download file:
  • Open main app in App Designer and click on share option in the Designer tab.
  • Choose the kind of app you want to create.
  • All the additional files and dependencies required for the main app are automatically detected and included for package creation.
  • You can add additional files as well if they are required.
  • Click on Package option.
  • This creates a single app installation file.
Refer to these links for more information on App Designer:

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!