Effacer les filtres
Effacer les filtres

How to 'break' a Gaussian pulse into discrete parts

1 vue (au cours des 30 derniers jours)
Fotaras Sitof
Fotaras Sitof le 29 Nov 2015
Modifié(e) : Fotaras Sitof le 29 Nov 2015
Hi guys,
I need to break down a continuous Gaussian pulse into 50 discrete parts so I can use each of the 50 individual amplitudes in calculations. Here is what I've tried:
% Gauss pulse discretisation
tg = 20*10^(-3); % pulse duration [sec]
B1 = 1; % max amplitude [muT]
t = -tg/2:tg/50:tg/2; % sampling times
sd = 0.25; % pulse standard deviation
% pulse shape
p = B1*exp(-((t-tg/2).^2)/(2*sd.^2));
plot(t,p);
However, the plot looks nothing like a Gaussian pulse of 20ms in duration! If instead the sampling time is changed to
t = -1:tg/50:1
then the pulse does look like a Gaussian but it is broken down in 5001 parts. Could someone please point me in the right direction? Thank you.

Réponses (0)

Catégories

En savoir plus sur Mathematics dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by