Is there a hidden workspace in Simulink other than the model workspace?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Guilherme T Silva
am 7 Jun. 2016
Beantwortet: Guilherme T Silva
am 8 Jun. 2016
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 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
Walter Roberson
am 7 Jun. 2016
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 Kommentare
Walter Roberson
am 7 Jun. 2016
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.
Siehe auch
Kategorien
Mehr zu Model Verification finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!