Signal Processing Toolbox    
rectpuls

Generate a sampled aperiodic rectangle.

Syntax

Description

y = rectpuls(t) returns a continuous, aperiodic, unity-height rectangular pulse at the sample times indicated in array t, centered about t = 0 and with a default width of 1. Note that the interval of non-zero amplitude is defined to be open on the right, that is, rectpuls(-0.5) = 1 while rectpuls(0.5) = 0.

y = rectpuls(t,w) generates a rectangle of width w.

rectpuls is typically used in conjunction with the pulse train generating function pulstran.

See Also
chirp
Generate a swept-frequency cosine.
cos
Compute the cosine of vector/matrix elements (see the MATLAB documentation).
diric
Compute the Dirichlet or periodic sinc function.
gauspuls
Generate a Gaussian-modulated sinusoidal pulse.
pulstran
Generate a pulse train.
sawtooth
Generate a sawtooth or triangle wave.
sin
Compute the sine of vector/matrix elements (see the MATLAB documentation).
sinc
Compute the sinc or sin(t)/t function.
square
Generate a square wave.
tripuls
Generate a sampled aperiodic triangle.


 rceps remez