N = 100; WN = normrnd(0,1,N,1); V = cumsum(WN); plot(V,'r') hold on