How to extract simulink block source code
13 次查看(过去 30 天)
显示 更早的评论
Hi everyone,
I would like to ask how to extract the code of Simulink blocks.
If anybody knows I need in specific the code of “ discrete time integrator ” and “ discrete derivative ” blocks.
Thanks to everyone.
Best regards, Leonardo.
0 个评论
回答(1 个)
Birdman
2017-11-16
To extract their code, you need to take Integrator and Derivative block into Subsystem respectively and separately(shortcut is clicking Ctrl-G at the same time). Then, right click on their subsystem, go to C Code->Build This Subsystem and you will have the code related to those blocks. I assume you made necessary arrangements from Configuration Parameters. Hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!