How to create i.i.d. random signal uniformly distributed in the interval [-3,3] ?
3 次查看(过去 30 天)
显示 更早的评论
Hi friends, How can I create i.i.d. random signal uniformly distributed in the interval [-3,3]? thanks a million.
0 个评论
回答(1 个)
Walter Roberson
2017-5-31
2 个评论
Walter Roberson
2022-8-4
编辑:Walter Roberson
2022-8-4
rand() * 6 - 3
Though this cannot generate exactly -3 or exactly +3
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Random Number Generation 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!