Hi. I am using R2020a, and have some problems with using a To workspace block.
First, even though I set the variable name of the block y, the name of the output in the workspace is still 'out'.
Second, the matrix of the 'out' result is always 1 by 1.
Does anyone know what is wrong?

 Akzeptierte Antwort

Fangjun Jiang
Fangjun Jiang am 16 Jul. 2020

0 Stimmen

'out' is just the name of the structure that includes all the variables in all the "To Workspace" blocks. Your variable is in out.y. Just type in "out.y" in Command Window after simulation is done.

Weitere Antworten (0)

Kategorien

Mehr zu Simulink finden Sie in Hilfe-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