How to randomized a n by m matrix ?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
I want to randomize an n by m matrix containing numbers just between -1 to 1, where the sum of each row vector is equal to 1.
Ex. 3 by 2 matrix:
m = [.6 .3 .1; ...
.2 .7 .1]
0 Kommentare
Antworten (1)
Roger Stafford
am 3 Sep. 2017
Bearbeitet: Stephen23
am 3 Sep. 2017
You can use my File Exchange routine “randfixedsum” at:
to obtain your 1 sums with values between -1 and 1.
0 Kommentare
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!