matrix multiplication with probability
Mostrar comentarios más antiguos
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 comentarios
Walter Roberson
el 11 de Feb. de 2018
An example would help our understanding.
Santhosh Chandrasekar
el 11 de Feb. de 2018
Editada: Santhosh Chandrasekar
el 12 de Feb. de 2018
Respuesta aceptada
Más respuestas (1)
Jan
el 11 de Feb. de 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 comentario
Santhosh Chandrasekar
el 12 de Feb. de 2018
Editada: Santhosh Chandrasekar
el 12 de Feb. de 2018
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!