Random 2D Particle Walk

2 visualizzazioni (ultimi 30 giorni)
Bianca Batista
Bianca Batista il 7 Mag 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.

Risposte (0)

Categorie

Scopri di più su MATLAB in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by