Persistent variables not being initialized.
显示 更早的评论
I am trying to initialize persistent variables in a Matlab function block in Simulink. I have used the debug mode to check the value of the variables. I find it strange that even after execution of the initialize statement, the variable is empty. Is there any reason for this to happen?
4 个评论
Birdman
2018-4-20
What is your code to initialize your persistent variable?
Shubham Agarwal
2018-4-20
Birdman
2018-4-20
Also share your Simulink model please.
Shubham Agarwal
2018-4-20
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!