programming simulink blocks
2 次查看(过去 30 天)
显示 更早的评论
回答(2 个)
MarkB
2011-3-7
There are two main methods: Embedded MATLAB blocks and S-functions. Embedded MATLAB blocks essentially allow you to define your simulation step behavior in MATLAB code and (with few exceptions) generate code from them if you are using Real-Time Workshop.
S-functions come in two flavors: Level-2 M-file S-functions and C-MEX S-functions. Level-2 M-file S-functions are written in MATLAB, and provide more access to simulation events than Embedded MATLAB (such as derivatives and initialization). C-MEX S-functions are written in C and give you pretty much complete control over everything the block does.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Naming Conventions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!