主要内容

heaviside

赫维赛德阶跃测试信号

描述

y = heaviside(x) 在输入 x 小于或等于 0 时返回 0,在 x 大于 0 时返回 1。将 heavisideet 运算符结合使用可在指定测试时间创建赫维赛德阶跃函数。在 Test Sequence 模块或 Test Assessment 模块的测试步骤中使用 heaviside 运算符。

示例

示例

全部展开

Test Sequence 模块中,在 5 秒后创建一个赫维赛德阶跃信号。

A test step that outputs a Heaviside step signal after 5 seconds while active.

Test Sequence 模块在 5 秒时输出阶跃函数:

The output of the Test Sequence block, shown in a Scope block.

输入参数

全部展开

测试步骤期间的值,指定为数值标量。

数据类型: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

版本历史记录

在 R2015a 中推出