packaged the application created by the MATLAB App design tool as a web application

3 ビュー (過去 30 日間)
天瀛 张
天瀛 张 2020 年 7 月 28 日
回答済み: Abhas 2025 年 6 月 24 日
When I packaged the application created by the MATLAB App design tool as a web application, i met a question “According to the MATLAB Compiler license, "start_simulink" is not included when packaging the MATLAB Runtime environment.''So when I open the app on the web, it cannot run. How can I solve this problem?

回答 (1 件)

Abhas
Abhas 2025 年 6 月 24 日
The error you are encountering is because "start_simulink" is part of Simulink Compiler, not included in a standard MATLAB Compiler license or the MATLAB Runtime environment. To fix this:
  • Install and use Simulink Compiler: Only Simulink Compiler bundles the Simulink runtime and allows using "start_simulink" in deployed apps.
  • Launch it via "webAppCompiler".
  • Add your ".mlapp" containing "start_simulink" usage and Package the app, it will generate a ".ctf" that includes Simulink support.
  • Deploy the ".ctf" file to MATLAB Web App Server: Copy it into the "apps" folder and restart or reload the server. The Simulink runtime components will now load properly on launch.
You may refer to the below documentation links to know more about the same:
  1. https://www.mathworks.com/help/webappserver/ug/simulink-simulation-web-app.html
  2. https://www.mathworks.com/matlabcentral/answers/1791415-how-can-i-include-a-simulink-model-in-an-application-deployed-with-matlab-compiler
  3. https://www.mathworks.com/help/slcompiler/ug/deploy-a-simulation-with-simulink-compiler.html
I hope this helps!

カテゴリ

Help Center および File ExchangeMATLAB Web App Server についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by