Two Dimensional Random Walk in MATLAB

Previously we described what a random walk is and demonstrated some simple code to perform this walk in one dimensional space. Today we will provide some simple code for how to perform such a walk in two-dimensional space. In the following post, we’ll look at the general case, and then we’ll get into some simulations. Here’s a sample of how our output will look like:

2D random walk in MATLAB

2D random walk in MATLAB

Continue reading