Start App-UI from desktop link with MATLAB running in background

2 Ansichten (letzte 30 Tage)
Rene Zehnder
Rene Zehnder am 24 Apr. 2024
Bearbeitet: Rene Zehnder am 25 Apr. 2024
Hi there,
I designed an App-UI. Now I would like to start it from a desktop link such that I just see my working UI. MATLAB shall run in the background.
When I do a link to *.mlapp I get the error message:
"Execution of script run as a function is not supported"
Solution found:
I solved the issue by adding arguments to the MATLAB startup link:
  • "-minimize" → It's not true background, but in my case good enough
  • "-r MyUI" → where MyUI is MyUI.mlapp
The whole argument looks like:
  • \bin\matlab.exe" -minimize -r MyUI
Additional comment on startup sequence:
  • MATLAB runs startup.m before the -r arguments
thank you for your Support
Rene
  4 Kommentare
Saurav
Saurav am 25 Apr. 2024
It seems like you're aiming to create a standalone desktop application that can operate independently.
Refer to this documentation: Create Standalone Desktop App
You should select "Standalone Desktop App" from the drop-down menu under "Share."
If this is not what you aim for, kindly elaborate your issue for better help.
Rene Zehnder
Rene Zehnder am 25 Apr. 2024
Hi Saurav,
thank you for your proposal. I have overseen the "share" option, which I'll use to move the code to a different computer. At this time I avoid buying the compiler, as I will probably not need it enough to justify the cost.
Kind Regards
Rene

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Karanjot
Karanjot am 25 Apr. 2024
Hi Rene,
I recommend you to use the MATLAB Compiler to package your MATLAB application into a standalone application.
MATLAB Compiler enables you to share MATLAB programs as standalone applications and web apps. Standalone applications can be complete apps that use MATLAB graphics and UIs designed with MATLAB App Designer, or they can be command-line executables.
You may watch the tutorial for creating a standalone application here:
To know more about the MATLAB compiler, refer to the below documentation:
I hope this helps!
  1 Kommentar
Rene Zehnder
Rene Zehnder am 25 Apr. 2024
Hi Karanjot,
thank you for your proppsal. My goal is to avoid the additional toolbox as I won't use it enough times to satisfy the investment.
Kind Regards
Rene

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Produkte


Version

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by