x = unidinv(p, n)
| Parameter | Description |
|---|---|
| p | probabilities in the range [0, 1]. |
| n | positive integer scalar or array: maximum value. |
| Parameter | Description |
|---|---|
| x | inverse values. |
unidinv computes inverse cumulative probabilities for the discrete uniform distribution on integers from 1 to n.
p = [0 0.1 0.5 1];
x = unidinv(p, 5);
| Version | Description |
|---|---|
| 2.0.0 | initial version |