How to generate a vector of random numbers whose total must be equal to 1?
1 次查看(过去 30 天)
显示 更早的评论
I want to generate a random vector. if i add all the values in the generated vector, its sum should be equal to 1.
0 个评论
回答(1 个)
James Tursa
2020-3-4
See this FEX submission by Roger Stafford:
另请参阅
类别
在 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!