logncdf

Compute lognormal distribution cumulative distribution function values.

Syntax

p=logncdf(x)

p=logncdf(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 logncdf example:
x = 4;
mu = 5;
sigma = 3;
d = logncdf(x,mu,sigma)
p = 0.11418
Vector logncdf example:
x = [1:1:9];
mu = 5;
sigma = 3;
p = logncdf(x,mu,sigma)
p = [Matrix] 1 x 9
0.04779 0.075556 0.096721 0.11418 0.1292 0.14244 0.15433 0.16515 0.17509