Main Content

unpack

(Removed) Extract signal data from ModelDataLogs, SubsysDataLogs, or TSArray object into workspace variables

    The unpack function has been removed. Support for the ModelDataLogs format will be removed. Use another supported format, instead. For more information, see Version History.

    Description

    unpack(logs) extracts the top-level contents of the data logging object logs into one or more workspace variables.

    unpack(logs,opt) extracts the contents specified by opt from the data logging object logs into one or more workspace variables.

    Input Arguments

    collapse all

    Object from which to extract logged data, specified as a Simulink.ModelDataLogs object, a Simulink.SubsysDataLogs object, or a Simulink.TSArray object.

    Logged data to unpack into workspace, specified as 'systems' or 'all'.

    • 'systems' — Extract Simulink.Timeseries and Simulink.TSArray objects from Simulink.ModelDataLogs or Simulink.SubsysDataLogs object. Simulink.Timeseries objects are not extracted from Simulink.TSArray objects, and intermediate Simulink.ModelDataLogs and Simulink.SubsysDataLogs objects are not extracted to the workspace.

    • 'all' — Extract Simulink.Timeseries objects from all Simulink.ModelDataLogs, Simulink.SubsysDataLogs, and Simulink.TSArray objects.

    Version History

    Introduced before R2006a

    expand all

    R2024b: Removed

    The unpack function has been removed. To convert data logged in ModelDataLogs format to Dataset format, use a version of Simulink prior to the R2024b release.