pulse train with gaussian pulses in an irregular interval
Afficher commentaires plus anciens
Hello, I would like to generate a pulse train using Gaussian pulses where the time interval between each pulse is a random variable vector, say X. I know how to do the fixed time interval using pulstran.m and after specifying the prototype pulse using gauspuls.m. However, the irregular seems to be not that straightforward. Any help will be appreciated.
Réponse acceptée
Plus de réponses (1)
Can't the d input to pulstran be set to whatever offsets you want, random or otherwise? Taking the example from the pulstran docpage
fnx = @(x,fn) sin(2*pi*fn*x).*exp(-fn*abs(x));
ffs = 1000;
tp = 0:1/ffs:1;
pp = fnx(tp,30);
fs = 2e3;
t = 0:1/fs:1.2;
d = sort(rand(1,4)) % random offsets
z = pulstran(t,d,pp,ffs);
plot(t,z)
xlabel('Time (s)')
ylabel('Waveform')
3 commentaires
Ioannis Matthaiou
le 16 Sep 2021
Paul
le 16 Sep 2021
That's just the effect of how the pulses interact with each other when one pulse starts before the previous one damps out. We can see from the first pulse that the fundamental pulse takes about 0.2 seconds to damp out. But the leading edge of pulses 2 and 3 are only about 0.04 seconds part, so they will interefere with each other, either constructively or destructively as the case may be. Think of the limiting case where two pulses start at the exact same time. The fourth pulse is spearated enough in time such that it looks just like the first.
Ioannis Matthaiou
le 16 Sep 2021
Catégories
En savoir plus sur Waveform Generation dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
