Exmple of implementing C code in Simulink

2 visualizaciones (últimos 30 días)
William
William el 22 de Abr. de 2014
Comentada: A Jenkins el 23 de Abr. de 2014
Could someone provide me an example for using C code in Simulink? Thanks.

Respuesta aceptada

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

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by