Exmple of implementing C code in Simulink

2 次查看(过去 30 天)
Could someone provide me an example for using C code in Simulink? Thanks.

采纳的回答

A Jenkins
A Jenkins 2014-4-22
There are dozens of examples included with MATLAB. In your command window, type
sfundemos
Or see the help file.
  2 个评论
William
William 2014-4-23
I was able to open the examples. Can we access the C code?
A Jenkins
A Jenkins 2014-4-23
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.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by