| Contents | Index |
| On this page… |
|---|
As an alternative to importing MATLAB timeseries data (see Importing MATLAB timeseries Data), any root-level Inport block or Trigger block can import a Simulink.Timeseries object.
Importing Simulink.Timeseries objects allows you to import data logged by a previous simulation run that used the ModelDataLogs format for signal logging (see Exporting Signal Data Using Signal Logging). For example, suppose that you have a model that references several other models. You can log data from the inputs of the referenced models during the simulation of the top model. Then you can use that logged data as inputs for the referenced models when you simulate the referenced models individually. This approach allows you to test the referenced models independently of the top model and each other.
However, using a structure of MATLAB timeseries objects provides several benefits. See Importing Structures of MATLAB timeseries Objects for Bus Signals to a Root-Level Input Port.
Objects of the Simulink.TsArray class have a variable number of properties. The first property, called Name, specifies the log name of the logged signal. The remaining properties reference logs for the elements of the logged signal: Simulink.Timeseries objects for elementary signals and Simulink.TsArrayobjects for mux or bus signals. The name of each property is the log name of the corresponding signal.
![]() | Importing Structures of MATLAB timeseries Objects for Bus Signals to a Root-Level Input Port | Importing Data Arrays to a Root-Level Input Port | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |