Signal Processing Toolbox | ![]() ![]() |
Generate a sampled aperiodic rectangle.
Syntax
y=
rectpuls(t) y=
rectpuls(t,w)
Description
y
returns a continuous, aperiodic, unity-height rectangular pulse at the sample times indicated in array =
rectpuls(t)
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
generates a rectangle of width =
rectpuls(t,w)
w
.
rectpuls
is typically used in conjunction with the pulse train generating function pulstran
.
See Also
|
Generate a swept-frequency cosine. |
|
Compute the cosine of vector/matrix elements (see the MATLAB documentation). |
|
Compute the Dirichlet or periodic sinc function. |
|
Generate a Gaussian-modulated sinusoidal pulse. |
|
Generate a pulse train. |
|
Generate a sawtooth or triangle wave. |
|
Compute the sine of vector/matrix elements (see the MATLAB documentation). |
|
Compute the sinc or sin(![]() ![]() |
|
Generate a square wave. |
|
Generate a sampled aperiodic triangle. |
![]() | rceps | remez | ![]() |