Main Content

本页采用了机器翻译。点击此处可查看英文原文。

t

Requirements Table模块中的仿真已用时间

自 R2022a 起

语法

描述

示例

t 以秒为单位返回仿真时间。您只能在 Requirements Table模块中使用此运算符。

示例

全部展开

在预条件中,检查变量a是否等于仿真时间(以秒为单位)。

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

提示

  • t 捕获模型层次结构中最高模型的时间。因此,t 在仿真中使用的每个 Requirements Table模块中的值都是相同的,包括 Enabled Subsystem 块中禁用的块。

版本历史记录

在 R2022a 中推出