Preventing/ avoiding Opening MATLAB window when opening an app (.mlapp-file)

17 ビュー (過去 30 日間)
NightStalker
NightStalker 2023 年 4 月 4 日
コメント済み: NightStalker 2023 年 4 月 4 日
I created an app using the Appdesigner. Is there a way to double click the .mlapp-file and run ONLY the app?
Currently, when I double-click the .mlapp-file it opens the app but also the standard MATLAB-window (whith script, editor, workspace etc.).
This is really annoying.
Is there a way to open the app and nothing but the app GUI?
Thanks in advance!
  2 件のコメント
Rik
Rik 2023 年 4 月 4 日
You might need to use Compiler to make it a standalone application.
NightStalker
NightStalker 2023 年 4 月 4 日
Hi Rik, thank you for your answer.
If I code the app via Compiler as a standalone application, does that mean, that every system that tries to run my app hast to have the Compiler add-on as well?

サインインしてコメントする。

採用された回答

Image Analyst
Image Analyst 2023 年 4 月 4 日
If you double click the file in File Explorer it opens the default app defined for it in the operating system. For .mlapp, this is MATLAB:
as you can see from the above control panel screenshot.
AppDesigner is not a standalone app. It's like half a program that needs the regular MATLAB development interface to operate. For example App Designer does not have a command window, the workspace panel with your variables, or the Current Folder panel with all your files. So you can't have App Designer by itself without MATLAB.
Like Rik said, if you want to run your app without the MATLAB and App Designer programs appearing you'd have to compile your app into a standalone executable. However the compiler is a very expensive toolbox.
  1 件のコメント
NightStalker
NightStalker 2023 年 4 月 4 日
Hello Image Analyst,
I really appreciate your clearly understandable and helpful answer.
The obstacles to run the app without the MATLAB-window cleary outweigh the benefits. Therefore I will just run it with the window opened. Thanks for the help!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by