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

74 visualizaciones (últimos 30 días)
Justin
Justin el 23 de Mayo de 2023
Respondida: Saffan el 30 de Mayo de 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

Respuestas (1)

Saffan
Saffan el 30 de Mayo de 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:

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by