How to convert ModelDataLogs to Structure

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.

 Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 20 de Jun. de 2018

1 voto

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

Más respuestas (0)

Categorías

Más información sobre Prepare Model Inputs and Outputs en Centro de ayuda y File Exchange.

Preguntada:

el 19 de Jun. de 2018

Respondida:

el 20 de Jun. de 2018

Community Treasure Hunt

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

Start Hunting!

Translated by