Time
R2026bOption 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) | offonThe simulation logs the time steps as a vector.
By default, the property of the
Simulink.SimulationOutputobject that contains the logged time data has the nametout. 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 theSimulink.SimulationOutputobject. For more information, see Variable Names.offThe 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