matrix multiplication with probability
Show older comments
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 Comments
Walter Roberson
on 11 Feb 2018
An example would help our understanding.
Santhosh Chandrasekar
on 11 Feb 2018
Edited: Santhosh Chandrasekar
on 12 Feb 2018
Accepted Answer
More Answers (1)
Jan
on 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 Comment
Santhosh Chandrasekar
on 12 Feb 2018
Edited: Santhosh Chandrasekar
on 12 Feb 2018
Categories
Find more on Creating and Concatenating Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!