square
Square wave test signal
Syntax
Description
generates a
square wave from the input y
= square(x
)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 et
operator as the input to generate the wave throughout simulation time in the test step.
Divide et
by a value to specify a period. Use the
square
operator in the test step of a Test
Sequence or Test Assessment block.
Examples
Input Arguments
Version History
Introduced in R2015a