do matrix multiplication by taking different values according to the range

1 view (last 30 days)
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 !
  10 Comments
Berfin Çetinkaya
Berfin Çetinkaya on 26 May 2022
Yes, you're right, it got very complicated. I think I should have asked the question properly from the beginning. I will open a new question. Thank you for helping.

Sign in to comment.

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!