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

78 ビュー (過去 30 日間)
Justin
Justin 2023 年 5 月 23 日
回答済み: Saffan 2023 年 5 月 30 日
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

回答 (1 件)

Saffan
Saffan 2023 年 5 月 30 日
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:

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by