MATLAB: Random exponential cdf numbers

cdfcumulativedistributionexponentialrandom numbers

How could I generate random results from an exponential cumulative distribution function?
Thanks, in advance!

Best Answer

mu = 2 % mean of distribution
x = -mu*log(1-rand(1,10)); % ten numbers
Related Question