function plotcdf(z) %plots cumulative distribution L = length(z); plot(sort(z),(1:L)/L) ylabel('cdf')