n = 2000; hold on for k = 1:10 [t, x] = randomwalk(n); plot(t, x) end hold off