normpdf
Compute normal distribution probability density function values.
Syntax
d=normpdf(x)
d=normpdf(x,mu,sigma)
Inputs
- x
- Values of the distribution random variable.
- mu
- Mean (default = 0).
- sigma
- Standard Deviation (default = 1).
Outputs
- d
- Probability density values.
Examples
Single value normpdf example:
x = 4;
mu = 5;
sigma = 3;
d = normpdf(x,mu,sigma)
d = 0.12579
Vector normpdf
example:
x = [1:1:7];
mu = 5;
sigma = 3;
d = normpdf(x,mu,sigma)
d = [Matrix] 1 x 7
0.05467 0.080657 0.10648 0.12579 0.13298 0.12579 0.10648