How do I generate exponential numbers from 0 to 1?
2 views (last 30 days)
Show older comments
Thijs Ruigrok
on 24 Apr 2015
Commented: Thijs Ruigrok
on 24 Apr 2015
How do I generate exponential numbers from 0 to 1, the numbers should be random with a increasing value Thanks!
1 Comment
Image Analyst
on 24 Apr 2015
"random with a increasing value" does not make sense. If they're always increasing, then they're not random, are they?
Accepted Answer
Azzi Abdelmalek
on 24 Apr 2015
Edited: Azzi Abdelmalek
on 24 Apr 2015
ii=sort(exp(randi([-10 0],10,1)))
More Answers (1)
See Also
Categories
Find more on Random Number Generation 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!