Main Content

ramp

Return input value for test signal generation

Description

y = ramp(x) returns the value of x. Use the ramp operator in the test step of a Test Sequence or Test Assessment block.

example

Examples

expand all

In a Test Sequence block, output a constant signal of value 1 while the test step is active.

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

The Test Sequence block outputs a signal equal to 1:

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

In a Test Sequence block, generate a signal that increases one unit every 3 seconds in the test step.

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

The Test Sequence block outputs a signal equal to et/3:

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

Input Arguments

expand all

Value during the test step, specified as a numeric scalar.

Data Types: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64

Version History

Introduced in R2015a