Exmple of implementing C code in Simulink

Could someone provide me an example for using C code in Simulink? Thanks.

 Accepted Answer

There are dozens of examples included with MATLAB. In your command window, type
sfundemos
Or see the help file.

2 Comments

I was able to open the examples. Can we access the C code?
In my version (2013b), all of the sample models contain a blue block with the path name of the source, you can double click on that block to open the C source in the editor.
Or just go to matlabroot/toolbox/simulink/simdemos/simfeatures/src. The help file link above has descriptions of which file is which.

Sign in to comment.

More Answers (0)

Categories

Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange

Products

Asked:

on 22 Apr 2014

Commented:

on 23 Apr 2014

Community Treasure Hunt

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

Start Hunting!