How to generate a vector of random numbers whose total must be equal to 1?

1 visualizzazione (ultimi 30 giorni)
I want to generate a random vector. if i add all the values in the generated vector, its sum should be equal to 1.

Risposte (1)

James Tursa
James Tursa il 4 Mar 2020
  4 Commenti
balaji
balaji il 4 Mar 2020
No. I want 1 row having 3 values (column) (for example s = 0.5 0.3 0.2) whose sum should be equal to 1

Accedi per commentare.

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by