MATLAB: One dimensional random walk model MATLAB code?

1d random walkdrunkardhomework

A drunk man's random walk in one dimension

Best Answer

The most I can do is to offer up these two attached random walk demos that I've posted before (and you've probably already found if you've done a search of this forum). Feel free to adapt them to 1D by getting rid of the "y" calculation. If you have specific questions with your code, read these:
and then come back here.