matrix multiplication with probability
Afficher commentaires plus anciens
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 commentaires
Walter Roberson
le 11 Fév 2018
An example would help our understanding.
Santhosh Chandrasekar
le 11 Fév 2018
Modifié(e) : Santhosh Chandrasekar
le 12 Fév 2018
Réponse acceptée
Plus de réponses (1)
Jan
le 11 Fév 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 commentaire
Santhosh Chandrasekar
le 12 Fév 2018
Modifié(e) : Santhosh Chandrasekar
le 12 Fév 2018
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!