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?

 採用された回答

Fangjun Jiang
Fangjun Jiang 2020 年 7 月 16 日

0 投票

'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.

1 件のコメント

Jiwoo Suh
Jiwoo Suh 2020 年 7 月 17 日
I got it now. Thank you so much!

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSimulink についてさらに検索

タグ

質問済み:

2020 年 7 月 16 日

コメント済み:

2020 年 7 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by