Filter löschen
Filter löschen

Viewing Source Code in built in simulink block?

96 Ansichten (letzte 30 Tage)
Chandana
Chandana am 2 Mai 2012
Beantwortet: hasan kasem am 14 Jan. 2021
Hi can someone tell me how I can view the matlab source code for a built in simulink block? I am trying to make a modified accumulator block for my simulink model and I'd like to know how the built in simscape version is implemented. I have matlab version r2010b. Thanks

Akzeptierte Antwort

K E
K E am 2 Mai 2012
Based on this answer, I think you may not be able to see the source code.

Weitere Antworten (2)

Chandana
Chandana am 24 Jul. 2012
Thanks for the help!

hasan kasem
hasan kasem am 14 Jan. 2021
To generate code, you must make the following changes:
  1. In the Modeling tab of the model toolstrip, click Model Settings. The Configuration Parameters dialog opens. Navigate to the Code Generation tab, select the Generate code only parameter, and click Apply.
  2. In the Apps gallery, click Simulink Coder. The C Code tab appears. Click the Generate Code icon ().

Kategorien

Mehr zu Data Logging finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by