| Signal Processing Toolbox | ![]() |
Syntax
Description
x generates a square wave with period 2 = square(t)
for the elements of time vector t. square(t) is similar to sin(t), but creates a square wave with peaks of ±1 instead of a sine wave.
x generates a square wave with specified duty cycle, = square(t,duty)
duty. The duty cycle is the percent of the period in which the signal is positive.
See Also
chirp, cos, diric, gauspuls, pulstran, rectpuls, sawtooth, sin, square, tripuls
| sptool | ss2sos | ![]() |