Main Content

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

heaviside

Heaviside 阶跃测试信号

描述

示例

当输入的 x 小于或等于 0 时,y = heaviside(x) 返回 0,当 x 大于 0 时,返回 1。使用 heavisideet 运算符在指定的测试时间创建 Heaviside 阶跃函数。在 Test SequenceTest Assessment 模块的测试步骤中使用 heaviside 操作符。

示例

全部展开

Test Sequence 模块中,5 秒后创建 Heaviside 阶跃信号。

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 中推出