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

1 vue (au cours des 30 derniers jours)
天瀛 张
天瀛 张 le 28 Juil 2020
Réponse apportée : Abhas le 24 Juin 2025
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?

Réponses (1)

Abhas
Abhas le 24 Juin 2025
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!

Catégories

En savoir plus sur MATLAB Web App Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by