cumulative distribution function

This will give you a smooth line for your cumulative distribution function:

x = randn(10000)
y = sort(x)
plot(y,linspace(0,1,10000))

Mark