ashokone
Member level 3
fc=2e9;
fs = 20e9; % sample freq
D = [2.5 10 17.5]' * 1e-9; % pulse delay times
t = 0 : 1/fs : 2500/fs; % signal evaluation time
w = 4e-9; % width of each pulse
yp = pulstran(t,D,@rectpuls,w);
if we plot this using matlab..it will generate rectangular pulse train with amplite varying from 0 to 1.. but how to modify this code so that it has to generate a pulse(amplitude0 varying from (-1 to 1);
..please let me know how to modify..
is there any other method.
fs = 20e9; % sample freq
D = [2.5 10 17.5]' * 1e-9; % pulse delay times
t = 0 : 1/fs : 2500/fs; % signal evaluation time
w = 4e-9; % width of each pulse
yp = pulstran(t,D,@rectpuls,w);
if we plot this using matlab..it will generate rectangular pulse train with amplite varying from 0 to 1.. but how to modify this code so that it has to generate a pulse(amplitude0 varying from (-1 to 1);
..please let me know how to modify..
is there any other method.