How to create a persistent variable in the matlab function block inside simulink?
18 次查看(过去 30 天)
显示 更早的评论
What is a best way to create a persistent variable in the matlab function block inside simulink? So that the values inside that variable can be changed insude the matlab function block at a simulation time step, and the new value is available at the next simulation step when the function is run again.
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!