Exmple of implementing C code in Simulink

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

 채택된 답변

A Jenkins
A Jenkins 2014년 4월 22일

0 개 추천

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개)

카테고리

도움말 센터File Exchange에서 Simulink Coder에 대해 자세히 알아보기

질문:

2014년 4월 22일

댓글:

2014년 4월 23일

Community Treasure Hunt

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

Start Hunting!

Translated by