views:

54

answers:

3

Hi my friends. I have a simulink model in Matlab. how can I build excute file from that model?

A: 

You will need the Matlab compiler to do that. It may or may not be included in your Matlab install. The link explains the how and what and should provide all info you need to get it working. I've never used it, so I can't help you further.

rubenvb
The Matlab compiler just works for M-files, not for Simulink models.
Pablo Rodriguez
I'm sure you can save the model (or at least its plot with all data) to an m-file, which you can then us to create an executable. Otherwise it will probably be impossible.
rubenvb
A: 

If you have the MATLAB compiler toolbox, then all you have to type into the command line is:

mcc -m yourmfilenamehere

Doresoom
thanks for the answer...
Elmoya
MATLAB compiler only works for M files, not Simulink models.
MikeT
Sorry, wouldn't know. Never used Simulink at the office.
Doresoom
+1  A: 

The MATLAB compiler won't help, you need Real-Time Workshop to generate C code from a Simulink model.

MikeT
The Real-Time Workshop can also generate executable code directly.
Pablo Rodriguez

related questions