Main Content

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

ramp

返回测试信号生成的输入值

描述

y = ramp(x) 返回 x 的值。在 Test SequenceTest Assessment 模块的测试步骤中使用 ramp 操作符。

示例

示例

全部展开

Test Sequence 模块中,在测试步骤处于活动时输出一个值为 1 的恒定信号。

A test step that outputs a constant value of 1 while active.

Test Sequence 模块输出等于 1 的信号:

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

Test Sequence 模块中,生成在测试步骤中每 3 秒增加一个单位的信号。

A test step that outputs a signal that increases one unit every 3 seconds while active.

Test Sequence 模块输出等于 et/3 的信号:

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

输入参数

全部展开

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

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

版本历史记录

在 R2015a 中推出