22.00j Tutorial: Sample Random Walk Code
Tutorial activities
During this tutorial, we discussed some sample MATLAB code which
plotted the positions of some random walkers vs time: show_rand_walk.m.
From this code, I hope you understand:
- How to plot simple functions using plot.
- How to plot simple paths using plot.
- How to use the :-operator to select parts of a matrix or
generate a row vector of (say) integers.