Statistics Toolbox | ![]() ![]() |
Random numbers from the exponential distribution
Syntax
Description
R = exprnd(MU)
generates exponential random numbers with mean MU. The size of R is the size of MU.
R = exprnd(MU,m)
generates exponential random numbers with mean MU, where m is a 1-by-2 vector that contains the row and column dimensions of R.
R = exprnd(MU,m,n)
generates exponential random numbers with mean MU, where scalars m and n are the row and column dimensions of R.
Examples
n1 = exprnd(5:10) n1 = 7.5943 18.3400 2.7113 3.0936 0.6078 9.5841 n2 = exprnd(5:10,[1 6]) n2 = 3.2752 1.1110 23.5530 23.4303 5.7190 3.9876 n3 = exprnd(5,2,3) n3 = 24.3339 13.5271 1.8788 4.7932 4.3675 2.6468
See Also
expcdf
, expfit
, expinv
, exppdf
, expstat
![]() | exppdf | expstat | ![]() |