ramp
返回测试信号生成的输入值
描述
返回 y
= ramp(x
)x
的值。在 Test Sequence 或 Test Assessment 模块的测试步骤中使用 ramp
操作符。
示例
创建恒定信号
在 Test Sequence 模块中,在测试步骤处于活动时输出一个值为 1
的恒定信号。
Test Sequence 模块输出等于 1
的信号:
创建斜坡信号
在 Test Sequence 模块中,生成在测试步骤中每 3 秒增加一个单位的信号。
Test Sequence 模块输出等于 et/3
的信号:
输入参数
x
— 测试步骤中的值
数字标量
测试步骤期间的值,指定为数值标量。
数据类型: single
| double
| int8
| int16
| int32
| int64
| uint8
| uint16
| uint32
| uint64
版本历史记录
在 R2015a 中推出
MATLAB 命令
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 MATLAB 命令。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)