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!