To workspace block suddenly doesn't work anymore

조회 수: 3 (최근 30일)
Brendan Finch
Brendan Finch 2016년 8월 31일
댓글: Pawel Ladosz 2016년 8월 31일
Im running a Simulink simulation from an m-file. I have several "to workspace" blocks in there and I used to be able to display the output via plot(myvar).
But now I'm getting the error
"Undefined function or variable 'myvar'.
Error in mymfile (line 135) plot(myvar);"
Using simOut.get('myvar') works, but how can I get it to work as expected?
  댓글 수: 1
Pawel Ladosz
Pawel Ladosz 2016년 8월 31일
can you please show us screenshots of settings of 'to workspace' block? and then screenshot of matlab workspace

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Programmatic Model Editing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by