Generating 15 random values (array of 1x15 dim) whose sum equal to 1.
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
How I can generate a random vector v = [v1, ..., v15] such that v1+...+v15 = 1. Please help me. :MSA
0 Kommentare
Antworten (1)
John D'Errico
am 28 Sep. 2017
Bearbeitet: John D'Errico
am 28 Sep. 2017
2. Use it.
Do NOT generate a set of random numbers, then just scale them to sum to 1.
1 Kommentar
Siehe auch
Kategorien
Mehr zu Random Number Generation finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!