Contenuto principale

Time

R2026b

Option to log vector of simulation time steps

Model Configuration Pane: Data Import/Export

Description

The Time parameter specifies whether the simulation logs a vector of simulation time steps.

By default, the data logs to a property of the Simulink.SimulationOutput object with the name tout. To access the logged time data, use dot notation. For example, when you use the default output variable name out and the default time-logging variable name tout, access the time data using this command.

tout = out.tout;

Settings

on (default) | off
on

The simulation logs the time steps as a vector.

By default, the property of the Simulink.SimulationOutput object that contains the logged time data has the name tout. To log data to a property with a different name, enter the name in the box. The name must be a valid MATLAB® variable name and must not match the name of any object functions or properties of the Simulink.SimulationOutput object. For more information, see Variable Names.

off

The simulation does not log time data during simulation.

Programmatic Use

Parameter: SaveTime
Type: string | character vector
Value: "on" | "off"
Default: 'on'
Parameter: TimeSaveName
Type: string | character vector
Value: valid MATLAB variable name
Default: 'tout'

Version History

Introduced before R2006a