triangle
Triangle wave test signal
Syntax
Description
triangle(
creates a triangle wave with a
period of 1 and range -1 to 1. In the interval 0 <= x < 0.5,
x
)triangle(x)
increases. The difference between triangle waves and
sawtooth waves is that a triangle wave has equal rise and fall times.
To specify the number of triangle wave cycles within a test step, use this operator with
the elapsed time (et
) operator.
Examples
Tips
triangle
signal generation statements can be used in the Test Sequence and Test Assessment blocks.triangle
signal generation statements cannot be used in Stateflow® charts.
Version History
Introduced in R2015a