How to create i.i.d. random signal uniformly distributed in the interval [-3,3] ?
3 views (last 30 days)
Show older comments
Hi friends, How can I create i.i.d. random signal uniformly distributed in the interval [-3,3]? thanks a million.
0 Comments
Answers (1)
Walter Roberson
on 31 May 2017
2 Comments
Walter Roberson
on 4 Aug 2022
Edited: Walter Roberson
on 4 Aug 2022
rand() * 6 - 3
Though this cannot generate exactly -3 or exactly +3
See Also
Categories
Find more on Random Number Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!