Plotting this gaussian distribution.

1 回表示 (過去 30 日間)
Yagnaseni Roy
Yagnaseni Roy 2014 年 4 月 16 日
コメント済み: Star Strider 2014 年 4 月 16 日
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 件のコメント
Star Strider
Star Strider 2014 年 4 月 16 日
Post your code for your randGauss function.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeExploration and Visualization についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by