Generating 15 random values (array of 1x15 dim) whose sum equal to 1.
2 ビュー (過去 30 日間)
古いコメントを表示
How I can generate a random vector v = [v1, ..., v15] such that v1+...+v15 = 1. Please help me. :MSA
0 件のコメント
回答 (1 件)
John D'Errico
2017 年 9 月 28 日
編集済み: John D'Errico
2017 年 9 月 28 日
2. Use it.
Do NOT generate a set of random numbers, then just scale them to sum to 1.
参考
カテゴリ
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!