Member of the waveform generation class.
f = pulstran(a, b, c, d, e)
f = pulstran(a, b, c, d)
f = pulstran(a, b, c, e)
f = pulstran(a, b, c)
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 = tripuls(X1, 2, 0.2);
X2 = 0:0.1:20;
D = 0:5:20;
D = [D; 1:length(D)]';
Y2 = pulstran(X2, D, Y1, 10);
plot(X2, Y2)
chirp
diric
gauspuls
gmonopuls
rectpuls
sawtooth
sinc
square
tripuls
vco