Brownian Motion or Random Particle Motion in a Fluid
Version 1.0.0 (42.4 KB) by
Roche de Guzman
Simulation of a single particle in a box
Simulate random particle motion with varying:
Container Box
L = 10; W = 5; % rectangular container length and width
Particle
x = 0; y = 0; % starting position coordinates
l = 0.1; % movement length
d = 7; % counting numbers, where degrees of freedom = 4*d
N = 5e4; % number of movement steps
Cite As
Roche de Guzman (2024). Brownian Motion or Random Particle Motion in a Fluid (https://www.mathworks.com/matlabcentral/fileexchange/109690-brownian-motion-or-random-particle-motion-in-a-fluid), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022a
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0 |