How can I include a Simulink model in an application deployed with MATLAB Compiler?

4 views (last 30 days)
I have developed a MATLAB application that calls a Simulink model. I would like to deploy the MATLAB application with the MATLAB Compiler; however, Simulink commands such as SIM are not supported by the MATLAB Compiler. How can I include the usage of Simulink in my deployed MATLAB application?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 31 Aug 2022
Starting in R2020a, Simulink Compiler enables you to share Simulink simulations as standalone executables. You can build the executables by packaging the compiled Simulink model and the MATLAB code used to set up, run, and analyze a simulation. Standalone executables can be complete simulation apps that use MATLAB graphics and UIs designed with MATLAB App Designer. 
See the Simulink Compiler product page for more information about the product: https://www.mathworks.com/products/simulink-compiler.html
There is an example illustrating this workflow posted in the documentation at the location below: https://www.mathworks.com/help/slcompiler/ug/deploy-a-simulation-with-simulink-compiler.html
For solutions with R2019b and earlier, contact our Consulting Services:https://www.mathworks.com/services/consulting.html

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products


Release

R2011a

Community Treasure Hunt

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

Start Hunting!