Triangle wave test signal
triangle( generates a triangle wave from the
x based on the equation,
where the L-brackets represent the floor of the contents. The output wave has a range
from -1 to 1. Use the
operator as the input to generate the wave throughout simulation time in the test step.
et by a value to specify a period. Use the
triangle operator in the test step of a Test
Sequence or Test Assessment block.
Create a Triangle Wave
In a Test Sequence block, Create a triangle wave with a period of 5.
The Test Sequence block outputs the triangle wave:
x — Value during test step
Value during the test step, specified as a numeric scalar.
Introduced in R2015a