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?