normcdf

Compute normal distribution cumulative distribution function values.

Syntax

p=normcdf(x,mu,sigma)

Inputs

x
Values of the distribution random variable.
Type: double
Dimension: scalar | vector | matrix
mu
Mean (default = 0).
Type: double
Dimension: scalar | vector | matrix
sigma
Standard Deviation (default = 1).
Type: double
Dimension: scalar | vector | matrix

Outputs

p
Cumulative probability values.

Examples

Single value normcdf example:

x = 4;
mu = 5;
sigma = 3;
p = normcdf(x,mu,sigma)
p = 0.36944
Vector normcdf example:
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