
The pulstran Function
2-11
The pulstran Function
The pulstran function generates pulse trains from either continuous or sampled
prototype pulses. The following example generates a pulse train consisting of the sum of
multiple delayed interpolations of a Gaussian pulse. The pulse train is defined to have a
sample rate of 50kHz, a pulse train length of 10ms, and a pulse repetition rate of 1kHz;
D specifies the delay to each pulse repetition in column1 and an optional attenuation for
each repetition in column2. The pulse train is constructed by passing the name of the
gauspuls function to pulstran, along with additional parameters that specify a 10kHz
Gaussian pulse with 50% bandwidth:
T = 0:1/50E3:10E-3;
D = [0:1/1E3:10E-3;0.8.^(0:10)]';
Y = pulstran(T,D,'gauspuls',10E3,0.5);
plot(T,Y)
Comentarios a estos manuales