Question: Simulating random walks. Write a computer script to simulate particles undergoing random walks. You may choose any language/program (MATLAB, Mathematica, C++, Excel, etc.). Run the

Simulating random walks. Write a computer script to simulate particles undergoing random walks. You may choose any language/program (MATLAB, Mathematica, C++, Excel, etc.). Run the simulation for 1000 independent particles, simulating each for 20 steps. Calculate and plot the mean square displacement, (z2(n)), as a function of n. I will provide a sample MATLAB script for the simulation of a single random walker (in the code, T = 1 and 8 = 1). You may find it useful to modify this code. Include your code at the end of your assignment. Simulating random walks. Write a computer script to simulate particles undergoing random walks. You may choose any language/program (MATLAB, Mathematica, C++, Excel, etc.). Run the simulation for 1000 independent particles, simulating each for 20 steps. Calculate and plot the mean square displacement, (z2(n)), as a function of n. I will provide a sample MATLAB script for the simulation of a single random walker (in the code, T = 1 and 8 = 1). You may find it useful to modify this code. Include your code at the end of your assignment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
