function Z = Poisproc(N, L) %Poisproc generates a Poisson process on [0,1] Y = zeros(1,N); for i = 2:N Y(i) = Y(i-1) + Pois(L/N); end Z=Y;