In line 2 "mat1" is not defined. If you want to have the inverse of "A" replace it with A. Also the size of "B" is 3x1 and "A" is 3x3 matrix. So trying to multiply "B" with "A" will give an error. You can take the transpose ...
Matrix Multiplication: A Matrix when multiplied by another matrix or a vector, there are some rules which need to be followed. There is a certain order which should be followed while multiplying the vector with the matrix. Example: only a1×3matrix can be multiplied to a3×3matrix. Such an...
A =[−314−8]and B =[128−1−5] Multiplication of two Matrices LetAandBbe two given matrices such that the number of columns inA= number of rows inBthen the productABis defined as matrix whose(i,j)thelement is obtained by multiplying the elements of...