Documentation

who

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

Syntax

log.who
tsarray.who
log.who('systems')
log.who('all')

Description

    Note:   To list names of top-level data logging objects in Dataset format, use Simulink.SimulationData.Dataset.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 ModelDataLogs API.

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

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

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

log.who('all') or who(log, 'all') lists the names 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 who, execute help who in the MATLAB Command Window.

Introduced before R2006a

Was this topic helpful?