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.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Simulink에 대해 자세히 알아보기

태그

질문:

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