choosing from numbers whose sum is X
Afficher commentaires plus anciens
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!!
Réponse acceptée
Plus de réponses (1)
Sean de Wolski
le 11 Sep 2012
Modifié(e) : Sean de Wolski
le 11 Sep 2012
0 votes
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!