matrix multiplication with probability
Mostra commenti meno recenti
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 Commenti
Walter Roberson
il 11 Feb 2018
An example would help our understanding.
Santhosh Chandrasekar
il 11 Feb 2018
Modificato: Santhosh Chandrasekar
il 12 Feb 2018
Risposta accettata
Più risposte (1)
Jan
il 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 Commento
Santhosh Chandrasekar
il 12 Feb 2018
Modificato: Santhosh Chandrasekar
il 12 Feb 2018
Categorie
Scopri di più su Creating and Concatenating Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!