MATLAB Answers

how to multiply three matrices that results in a single value.

1 view (last 30 days)
jaah navi
jaah navi on 11 Sep 2020
Answered: Asim Riaz on 11 Sep 2020
I am having three matrices:
A=[1 2 3];
B=[4 5 6];
C=[7 8 9];
I need to multiply all the three matrices such that the result should be single value .
Note : Inverse of the matrices can also be used.

  0 Comments

Sign in to comment.

Answers (2)


Asim Riaz
Asim Riaz on 11 Sep 2020
But to multiply a matrix by another matrix we need to do the "dot product" of rows and columns ... what does that mean? Let us see with an example: To work out the answer for the 1st row and 1st column: Want to see another example? Here it is for the 1st row and 2nd column: (1, 2, 3) • (8, 10, 12) = 1×8 + 2×10 + 3×12 = 64 We can do the same thing for the 2nd row and 1st column: (4, 5, 6) • (7, 9, 11) = 4×7 + 5×9 + 6×11 = 139 And for the 2nd row and 2nd column: (4, 5, 6) • (8, 10, 12) = 4×8 + 5×10 + 6×12 = 154

  0 Comments

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!