Main Content


List names and types of top-level data logging objects in Simulink ModelDataLogs data log





To list names of top-level data logging objects in Dataset format, use find.

The ModelDataLogs class is supported for backwards compatibility. Starting in R2016a, you cannot log data in the ModelDataLogs format. Signal logging uses the Dataset format. In R2016a or later, when you open a model from an earlier release that had used ModelDataLogs format, the model simulated in use Dataset format.

You can convert signal logging data from ModelDataLogs to Dataset format. Converting to Dataset format makes it easier to post-process with other logged data (for example, logged states), which can also use Dataset format. For more information, see Convert Logged Data to Dataset Format.

If you have legacy code that uses the ModelDataLogs API, you can encounter situations that require updates to your code or model. See Migrate Scripts That Use Legacy ModelDataLogs API.

log.whos or whos(log) lists the names and types of the top-level signal logging objects contained by log, where log is the handle of a Simulink.ModelDataLogs object name.

tsarray.whos or whos(tsarray) lists the names and types of Simulink.TimeSeries objects contained by the Simulink.TsArray object named tsarray.

log.whos('systems') or whos(log, 'systems') lists the names and types of all signal logging objects contained by log except for Simulink.Timeseries objects stored in Simulink.TsArray objects contained by log.

log.whos('all') or whos(log, 'all') lists the names and types of all the Simulink.Timeseries objects contained by the Simulink.ModelDataLogs, Simulink.TsArray or Simulink.SubsysDataLogs object named log.

For information about other uses of whos, use the help function for who in the MATLAB® Command Window.


To get the names of Dataset variables in the MAT-file, using the Simulink.SimulationData.DatasetRef.getDatasetVariableNames function processes faster than using the who or whos functions.

Version History

Introduced before R2006a