How to simulate a Simulnk model by a standalone executable?

I have to create a standalone of .m file which simulates a Simulink model and generate a result.xls
I am able to create the standalone for the .m file but the executable could not read the Simulink model.
How can I solve this issue?

Answers (1)

See this previous answer about why you are unable to run a Simulink model from a MATLAB Compiler generated executable. You need to generate an .exe from the Simulink model using Simulink Coder and then use that in your MATLAB code. Essentially, make your MATLAB code independent of Simulink.

Categories

Find more on Simulink Coder in Help Center and File Exchange

Asked:

on 28 Nov 2012

Community Treasure Hunt

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

Start Hunting!