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

조회 수: 1 (최근 30일)
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 CenterFile Exchange에서 MATLAB Web App Server에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by