How to convert ModelDataLogs to Structure

1 回表示 (過去 30 日間)
Alborz Sakhaei
Alborz Sakhaei 2018 年 6 月 19 日
回答済み: Fangjun Jiang 2018 年 6 月 20 日
I have a set of ModelDataLogs that is been generated in an old version on Simulink which does not support DataSet. How can I convert this ModelDataLogs (Simulin.ModelDataLogs class) into a simple structure (structure class).
Eventually I need to search/find "deep" into fields of the converted structure. That's why I need it to be in a structure class as opposed to Simulin.ModelDataLogs class.

採用された回答

Fangjun Jiang
Fangjun Jiang 2018 年 6 月 20 日
This might help. Assume your logged data is "logsout", run
logsout.unpack('all') to unpack all the data and then do whatever conversion you want.
doc unpack

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Environment Customization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by