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 CenterFile Exchange에서 Exploration and Visualization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by