unifcdf
Compute uniform distribution cumulative distribution function values.
Syntax
unifcdf(x)
unifcdf(x,a,b)
Inputs
- x
- Values of the distribution random variable.
- a
- Lower bound (default = 0).
- b
- Upper bound (default = 1).
Outputs
- p
- Cumulative probability values.
Examples
Single value unifcdf
example:
x = 4;
a = 3;
b = 5;
p = unifcdf(x,a,b)
p = 0.5
Vector unifcdf
example:
x = [3.2:0.4:4.8];
a = 3;
b = 5;
p = unifcdf(x,a,b)
p = [Matrix] 1 x 5
0.1 0.3 0.5 0.7 0.9