I have problems with "To Workspace"

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?

 Accepted Answer

Fangjun Jiang
Fangjun Jiang on 16 Jul 2020
'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.

More Answers (0)

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!