Filter löschen
Filter löschen

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

59 Ansichten (letzte 30 Tage)
Justin
Justin am 23 Mai 2023
Beantwortet: Saffan am 30 Mai 2023
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

Antworten (1)

Saffan
Saffan am 30 Mai 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:

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by