do matrix multiplication by taking different values according to the range
조회 수: 2 (최근 30일)
이전 댓글 표시
A matrices :
2 1 3
7 1 3
2 8 6
5 9 4
B matrix: C matrix: D matrix:
0,1 0,4 0,6
0,7 0,1 0,5
0,8 0,5 0,6
E matrix :
10
20
15
(from the second row, i.e. except the first row)For values between 1 ,2,3 in matrix A, matrix B is checked.
For values 4, 5,6 in matrix A, matrix C is checked.
For values between 7,8,9 in matrix A, matrix D is checked.
For the 7 value written in the 2nd row of the A matrix (since it is between 5 and 9) the D matrix is checked. The value in the 2th row of the D matrix is taken. (the value of 0.6 is taken) (We got the value in row 2 because in the first row of matrix A, cell (1,1) it says 2)
Then it will look at the top number in the A matrix, for example 7 in the second row. For example, it writes 2. Since it writes the value 2, it takes the value 20 in the 2nd row in the E matrix.
Then 0.5 multiplied by 20. And this is used for all values in matrix A.
new matrix:
0,5*20 0,1*10 0,8*15
0,7*20 0,6*10 0,5*15
0,5*20 0,6*10 0,5*15
If we multiply these values, we get the following matrix:
new matrix:
10 1 12
14 6 7,5
10 6 7,5
Thank you for help !
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!