normcdf
Compute normal distribution cumulative distribution function values.
Syntax
p=normcdf(x,mu,sigma)
Inputs
- x
- Values of the distribution random variable.
- mu
- Mean (default = 0).
- sigma
- Standard Deviation (default = 1).
Outputs
- p
- Cumulative probability values.
Examples
Single value normcdf example:
x = 4;
mu = 5;
sigma = 3;
p = normcdf(x,mu,sigma)
p = 0.36944
x = [1:1:7];
mu = 5;
sigma = 3;
p = normcdf(x,mu,sigma)
p = 0.091211 0.15866 0.25249 0.36944 0.5 0.63056 0.74751