Viewing Source Code in built in simulink block?
96 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
更多回答(2 个)
hasan kasem
2021-1-14
To generate code, you must make the following changes:
- 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.
- In the Apps gallery, click Simulink Coder. The C Code tab appears. Click the Generate Code icon ().
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Logging 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!