Difference between c function and s function
显示 更早的评论
Is there any difference between c function and s function block?In the mathlab documentation I saw as
"The C Function block supports initializing persistent data and calling external functions from the block dialog. The C Function block supports only initializing and terminating persistent data; the block does not support updating the data during simulation. To model a dynamic system with continuous states, use an S-Function block. "
Can anyone explain me this difference with some example? Or whether this difference is no longer there in new version(2024a) of Matlab?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!