Brownian Motion Showing Diffusion Behavior

Simulation of multiple particles in a box starting at a single location exhibiting random motion with animation
62 Downloads
Updated 9 Apr 2022

View License

Simulate random particles in motion with varying:
Container Box
L = 10; W = 5; % rectangular container length and width
Particle
np = 7; % number of particle(s)
N = 1e3; % number of movement steps
x = -L/2+L*rand; y = -W/2+W*rand; % random starting position coordinates
(within the fx)
l = 0.2; % movement length
d = 7; % counting numbers, where degrees of freedom = 4*d

Cite As

Roche de Guzman (2026). Brownian Motion Showing Diffusion Behavior (https://www.mathworks.com/matlabcentral/fileexchange/109705-brownian-motion-showing-diffusion-behavior), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2022a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0