matrix multiplication with probability
Ältere Kommentare anzeigen
Hi, I want to assign a probability of multiplication for each value in a 3X3 matrix and multiply it by a random number. Can anyone please help me with this.
2 Kommentare
Walter Roberson
am 11 Feb. 2018
An example would help our understanding.
Santhosh Chandrasekar
am 11 Feb. 2018
Bearbeitet: Santhosh Chandrasekar
am 12 Feb. 2018
Akzeptierte Antwort
Weitere Antworten (1)
Jan
am 11 Feb. 2018
Maybe:
A = [1 0.5 1; 0.6 0.3 0.4; 0.4 0.5 1];
for k = 1:10
a = rand;
B = A * a;
...
end
1 Kommentar
Santhosh Chandrasekar
am 12 Feb. 2018
Bearbeitet: Santhosh Chandrasekar
am 12 Feb. 2018
Kategorien
Mehr zu Creating and Concatenating Matrices finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!