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?

답변 (1개)
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
댓글 수: 1
Ibrahim A. Shaaban
2021년 10월 8일
Thank you so much
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!