Member of the waveform generation class.
c = rectpuls (a)
c = rectpuls (a, b)
Generates a rectangular wave that consists of zeros and ones. If b is the width of the rectangular pulse, the wave is 1 in the interval [-b/2, b/2] and 0 elsewhere.
| Name | Description |
| a | Specifies the sampling time. a is a real array. |
| b | Specifies the width of the rectangle. b is a positive number. The default is 1. |
| Name | Description |
| c | Returns the sampled rectangle. |
X = -1:0.02:1;
Y = rectpuls(X, 1);
plot(X, Y)
chirp
diric
gauspuls
gmonopuls
pulstran
sawtooth
sinc
square
tripuls
vco