choosing from numbers whose sum is X
古いコメントを表示
hi all,
suppose i generate 1000 random numbers and want to pick five out of that 1000 so that the sum of the five numbers is 100. if there is no way so the sum equal to 100 then i will just re run it. it doesnt have to work always...thank you!!
採用された回答
その他の回答 (1 件)
Sean de Wolski
2012 年 9 月 11 日
編集済み: Sean de Wolski
2012 年 9 月 11 日
0 投票
カテゴリ
ヘルプ センター および File Exchange で Creating and Concatenating Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!