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!