Start time
Simulation start time
Model Configuration Pane: Solver
Description
Specify the start time for the simulation in seconds, as a double-precision value. The start time specifies the first time value for which the simulation computes a result and the time from which the simulation engine propagates time.
Settings
0.0
(default) | scalar numberThe start time must be less than or equal to the stop time.
The values of block parameters with initial conditions must match the initial condition settings at the specified start time.
Simulation time is not the same as clock time. For example, running a simulation for 10 seconds usually does not take 10 seconds. Total simulation time depends on many factors, such as model complexity, solver step size, and system speed.
When you use a fixed-step solver, the start time for the simulation must be zero or an integer multiple of the fixed time step for the simulation. When you specify a start time that does not satisfy this requirement, the software issues a diagnostic and changes the start time to the nearest integer multiple of the fixed step size. To change the diagnostic behavior for this condition, use the Automatic solver parameter selection parameter.
Examples
Recommended Settings
The table summarizes recommended values for this parameter based on considerations related to code generation.
Application | Setting |
---|---|
Debugging | No impact |
Traceability | No impact |
Efficiency | No impact |
Safety precaution | 0.0 |
Programmatic Use
Parameter:
StartTime |
Type: string | character vector |
Values: scalar double |
Default: '0.0' |
Version History
Introduced before R2006a