Simulink 2019a To Workspace/Array gives a structure not an array

I created a simple model with a step source and a To Workspace sink. I changed the Save Format to Array and ran the model. The data in the workspace appears as a structure, not an array. Is this a bug? I don't recall it worked this way in 2018b. How can I change the settings so the data is saved as an Array?Capture.PNG

回答 (1 件)

Urmila Rajpurohith
Urmila Rajpurohith 2020 年 4 月 9 日

1 投票

Data in workspace appears as structure because single simulation ouput option is checked which return all simulation outputs as a single Simulink.SimulationOutput object
unchecking this option will give you the data in array format
To uncheck this option go to:
Modelconfiguration parameters -->Data import/export and uncheck single simulation ouput

カテゴリ

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

質問済み:

2019 年 9 月 23 日

コメント済み:

2021 年 10 月 8 日

Community Treasure Hunt

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

Start Hunting!

Translated by