matrix multiplication with probability
显示 更早的评论
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 个评论
Walter Roberson
2018-2-11
An example would help our understanding.
Santhosh Chandrasekar
2018-2-11
编辑:Santhosh Chandrasekar
2018-2-12
采纳的回答
更多回答(1 个)
Jan
2018-2-11
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 个评论
Santhosh Chandrasekar
2018-2-12
编辑:Santhosh Chandrasekar
2018-2-12
类别
在 帮助中心 和 File Exchange 中查找有关 Creating and Concatenating Matrices 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!