Matlab R2021b not generating output from Simulink

19 ビュー (過去 30 日間)
Jakub Butryn
Jakub Butryn 2021 年 10 月 26 日
コメント済み: Fangjun Jiang 2021 年 10 月 29 日
Hi
i have a problem with simulink simulink output. Every time I try to plot e.g plot(out.simout,out.tout) I get an error `Unable to resolve the name out.simout`
I tried changing model settings including single simulation outpu and format from dataset to array
The data is imported to Matlab cause when typing in command prompt out.simout it does return data from Simulink but it does not allow me to plot the data

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2021 年 10 月 27 日
Assume "simout" is the name used in the "To Workspace" block, the saving format "Array" need to be set at the "To Workspace" block.
Also, it should be plot(out.tout, out.simout). Time vector first.
  2 件のコメント
Jakub Butryn
Jakub Butryn 2021 年 10 月 27 日
Hi thanks for response, I tried to changing it to array and data series and also switching t.out as the first vector. I have done plot like this multiple times in Matlab 2019 but it’s not working in 2021 version
Fangjun Jiang
Fangjun Jiang 2021 年 10 月 29 日
Okay, if "typing in command prompt out.simout it does return data", then what is the data value? It should not be difficult to debug if you have the data for out.simout and out.tout.

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

カテゴリ

Help Center および File ExchangeSources についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by