Main Content

t

Elapsed time of simulation in Requirements Table block

Since R2022a

Syntax

Description

example

t returns the simulation time in seconds. You can use this operator only in the Requirements Table block.

Examples

expand all

In a precondition, check if the variable a is equal to the simulation time in seconds.

In a precondition, check if the variable a equals the simulation time in seconds.

Tips

  • t captures the time of the highest model in the model hierarchy. As a result, t is the same value in each Requirements Table block used in a simulation, including disabled blocks in Enabled Subsystem blocks.

Version History

Introduced in R2022a