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!