Question: Do a MATLAB program for a two-dimensional random walk (along x-y plane) with uniform length. The random walk has equal probability of going eastward

Do a MATLAB program for a two-dimensional random walk (along x-y plane) with uniform length. The random walk has equal probability of going eastward (+x), westward (-x), northward (+y) and southward (- y). Diagonal movement is not allowed. Consider 1000 random walkers with 100 allowable steps each walker. With r = x + y, Plot the trajectory (r) of any four random walkers versus step number do a plot of (r) versus step number (=time) and determine the value of the Diffusion coefficient.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
