Owning Class: waveform generation
Requires: MathScript RT Module
f = pulsetrain(a, b, c, d, e)
f = pulsetrain(a, b, c, d)
f = pulsetrain(a, b, c, e)
f = pulsetrain(a, b, c)
Legacy Name: pulstran
Generates a pulse train from a sampled prototype pulse.
| Name | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| a | Specifies the sampling time. a is a real array. | ||||||||
| b | Specifies the offsets. b is a real array or a 2D array with 2 columns. If b is a 1D array, f = c(a-b(1))+c(a-b(2))+... . Otherwise, f = b(1, 2)*c(a-b(1, 1))+b(2, 2)*c(a-b(2, 1))+... . | ||||||||
| c | Specifies the sampled prototype pulse. c is a real array. | ||||||||
| d | Specifies the alternative interpolation method. d is a string that accepts the following values.
|
||||||||
| e | Specifies the sampling rate of c. e is a positive number. The default is 1. |
| Name | Description |
|---|---|
| f | Returns the sampled pulse train. |
X1 = -1:0.1:1;
Y1 = tripulse(X1, 2, 0.2);
X2 = 0:0.1:20;
D = 0:5:20;
D = [D; 1:length(D)]';
Y2 = pulsetrain(X2, D, Y1, 10);
plot(X2, Y2)
chirp
dirichlet
gaussmonopulse
gausspulse
rectpulse
sawtooth
sinc
square
tripulse
vco