Borrar filtros
Borrar filtros

Random 2D Particle Walk

3 visualizaciones (últimos 30 días)
Bianca Batista
Bianca Batista el 7 de Mayo de 2018
Comentada: Walter Roberson el 7 de Mayo de 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.

Respuestas (0)

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by