Random 2D Particle Walk

조회 수: 2 (최근 30일)
Bianca Batista
Bianca Batista 2018년 5월 7일
댓글: Walter Roberson 2018년 5월 7일
Consider a particle that starts at the origin (0,0) and randomly walks through the x-y plane for 1000 steps. At each step, the particle moves in any ONE of 4 possible directions (+x,-x,+y,-y) at different probabilities (the probabilities of moving in any of the 4 directions must add to one). I need each particle to take 1,000 steps and for this to happen for 10,000 particles. I just need to plot the final location of each particle.

답변 (0개)

카테고리

Help CenterFile Exchange에서 MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by