Random 2D Particle Walk

1 Ansicht (letzte 30 Tage)
Bianca Batista
Bianca Batista am 7 Mai 2018
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.

Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by