Plotting this gaussian distribution.

2 vues (au cours des 30 derniers jours)
Yagnaseni Roy
Yagnaseni Roy le 16 Avr 2014
Commenté : Star Strider le 16 Avr 2014
I'm trying to make a list of velocities that come from a gaussian distribution, by the code below. However, I'm not being able to plot it to bring out the gaussian distribution. in the velocity vector, I have nDim=3 (number of dimensions) and number of columns=number of particles.
vels = zeros(nDim,nPart);
for part=1:nPart
vels(:,part) = randGauss(0,velSTD,nDim);
end
  1 commentaire
Star Strider
Star Strider le 16 Avr 2014
Post your code for your randGauss function.

Connectez-vous pour commenter.

Réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by