normcdf

normcdf(x) returns the standard normal cumulative distribution function (μ=0, σ=1) at each value in x.

Examples

> p = normcdf([-5 5])#

  2.86652e-07            1

> t = p(2)-p(1)#

 0.999999
> x = -5:0.2:5

[x:1x51 double]

> plot(x, normcdf(x))

[ans:1x1 struct]

Resources

See also

poissrnd | rand | randn