For example, if a square matrix has a determinant equal to zero, then it is not invertible and does not have an inverse matrix. You can use the inv() function to calculate the inverse matrix only if matrix M is a square matrix. The final result is an identity matrix ( unit matrix ). Now multiply matrix M with its inverse inv(M). Let me provide you with a practical example.ĭefine a square matrix with two rows and two columns.Ĭalculate the inverse matrix M -1 of matrix M using the function inv() What is the inverse matrix? A matrix M is said to be invertible if there exists another matrix called the inverse matrix M -1 such that the product of the two matrices is an identity matrix, which is a matrix with 1s on the main diagonal and 0s elsewhere. In this lesson, I will explain how to calculate the inverse matrix of a square or rectangular matrix using Matlab.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |