To workspace block suddenly doesn't work anymore

3 Ansichten (letzte 30 Tage)
Brendan Finch
Brendan Finch am 31 Aug. 2016
Kommentiert: Pawel Ladosz am 31 Aug. 2016
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 Kommentar
Pawel Ladosz
Pawel Ladosz am 31 Aug. 2016
can you please show us screenshots of settings of 'to workspace' block? and then screenshot of matlab workspace

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Programmatic Model Editing finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by