Start App-UI from desktop link with MATLAB running in background
8 次查看(过去 30 天)
显示 更早的评论
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"
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1678891/image.jpeg)
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 个评论
Saurav
2024-4-25
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.
回答(1 个)
Karanjot
2024-4-25
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!
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Develop Apps Using App Designer 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!