Random walk (with animated graph)

Random walk of particles and calculation of their dispersion coefficient
298 Downloads
Aktualisiert 30. Mär 2020

Lizenz anzeigen

The code is full of explanation notes, and is a solution to this question:
A. Consider an array of (n x n) particles initially equally positioned apart from each other by dx=1 and dy=1. Allow these particles to move walk randomly with time in a space much greater than the originally occupied space of (ndx x ndy). Calculate the average square distance between the particles and plot its ratio to the time step . This is the diffusion/dispersion coefficient.

Zitieren als

Yussef Rikli (2024). Random walk (with animated graph) (https://www.mathworks.com/matlabcentral/fileexchange/50574-random-walk-with-animated-graph), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2009a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Animation finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!

hw1 submitted/

Version Veröffentlicht Versionshinweise
1.0.0.0