Owning Class: waveform generation
Requires: MathScript RT Module
c = rectpulse (a)
c = rectpulse (a, b)
Legacy Name: rectpuls
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 = rectpulse(X, 1);
plot(X, Y)
chirp
dirichlet
gaussmonopulse
gausspulse
pulsetrain
sawtooth
sinc
square
tripulse
vco