How to convert ModelDataLogs to Structure
조회 수: 4 (최근 30일)
이전 댓글 표시
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.
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!