Error when using the function exprnd.
Show older comments
Hi everyone,
I got the following from using the function exprnd. I am not quite sure what went wrong, have anyone experienced this before? How do you troubleshoot it? Thanks in advance.
Error message:
Error using rand Input following 'like' must be a variable of a type that supports RAND. For example, double and single variables support RAND.
Error in exprnd (line 34) r = -mu .* log(rand(sizeOut, 'like', mu)); % == expinv(u, mu)
Thanks, SM
Answers (0)
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!