Square wave test signal
square wave from the input
y = square(
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
square operator in the test step of a Test
Sequence or Test Assessment block.
Create a Square Wave
In a Test Sequence block, create a square wave with a period of 5.
The Test Sequence block outputs the square wave:
x — Value during test step
Value during the test step, specified as a numeric scalar.
Introduced in R2015a