Home » Matlab » Inverse Of Matrix In MatLab®

Inverse Of Matrix In MatLab®

Inverses of matrices are generally used in linear equation solution systems, especially in linear algebra. Here, we will show you how to calculate the inverse of a matrix in Matlab®.

What Is Inverse Matrix?

YOU CAN LEARN MatLab® IN MECHANICAL BASE; Click And Start To Learn MatLab®!

The inverse of a matrix is the matrix that when multiplied with itself, gives an identity matrix.

You can take a look at the example above, the second matrix is the inverse matrix of A. Multiplication with A gives the same dimension identity matrix.

How To Calculate Inverse Of A Matrix In MatLab®?

>> A = [3 6 3; 6 -5 3; 6 -4 6];
inv(A)

ans =

    0.1250    0.3333   -0.2292
    0.1250   -0.0000   -0.0625
   -0.0417   -0.3333    0.3542

>> 

It is very basic to calculate the inverse of a matrix in Matlab®. You just need to use the ‘inv()’ command in the command window. As you see in the example above in the MatLab® command window, we created a 3×3 matrix ‘A’ then wrote ‘inv(A)’ then hit the Enter key.

You can see the answer above.

Conclusion

Do not forget to leave your comments and questions below about the inverse of a matrix in Matlab®.

If you want further coding examples about the inverse of a matrix in Matlab®, inform us in the comments.

This article is prepared for completely educative and informative purposes. Images used courtesy of Matlab®

Your precious feedbacks are very important to us.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *


Please

leave feedback ?

( For the post )

ASK THE MECHANICALLAND

COMMUNITY


We are always open to your feedback to improve ourselves and the quality of our content! If you have any suggestions, thoughts, or criticism, please let us know. We are trying to improve our blog with constructive feedback. We are aware of how valuable your feedback is for our future development, and we will carefully read all your comments. Thank you in advance!