Is there a hidden workspace in Simulink other than the model workspace?
1 次查看(过去 30 天)
显示 更早的评论
When running a Simulink model, I get unexpected behaviors if I don't call a clear all before the execution. Strange thing is that both the base and the model workspaces are empty. What could be happening? Where else can I look for those hidden variables?
Thanks!
0 个评论
采纳的回答
更多回答(1 个)
Walter Roberson
2016-6-7
One of things that clear all does is to clear out the parsed versions of routines (which you do not care about) along with their attached workspaces -- that is, any accumulated persistent variables, which could potentially be an issue.
2 个评论
Walter Roberson
2016-6-7
There is no documented way to detect persistent variables in loaded functions and examine those variables -- other than doing a text search for "persistent" and putting in breakpoints.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Verification 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!