Home » All Programs » Inverse Of A Matrix In MatLab®(Illustrated Expression)

Inverse Of A Matrix In MatLab®(Illustrated Expression)

In this article, we will show you how to take or index the inverse of a matrix in Matlab®. Sometimes you need to use some linear algebraic calculations in Matlab®. Matlab® has a very special coding library for linear algebra calculations. Look at the usage examples of how to take the inverse of matrices and how to use them in mathematical calculations.

Also, you can find lots of content about Matlab® like this article in Mechanicalland to learn Matlab® completely. Visit the main page of Mechanicalland!

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

How To Take Inverse Of A Matrix In Matlab®?

>> a = [1 3 5;7 8 11;100 1 4];
b =inv(a)
c = inv(a).*5
d = inv(a)+3

b =

   -0.0288    0.0096    0.0096
   -1.4725    0.6813   -0.0330
    1.0893   -0.4107    0.0179


c =

   -0.1442    0.0481    0.0481
   -7.3626    3.4066   -0.1648
    5.4464   -2.0536    0.0893


d =

    2.9712    3.0096    3.0096
    1.5275    3.6813    2.9670
    4.0893    2.5893    3.0179

>> 

To take the inverse of a matrix in Matlab®, you need to use the “inv()” command. It will generate the inverse of a matrix if you write the name of this matrix in this code in Matlab®.

‘a’ is the normal matrix created by us in Matlab® as shown above.

‘b’ is the matrix that we take as the inverse of ‘a’.

‘c’ is the multiplied inverse matrix of a that shows you can do mathematical calculations directly with inverses of matrices in Matlab®.

In ‘d’ we did the addition of an inverse matrix that also shows you can do mathematical calculations with this.

Conclusion

As you can see, taking inverses of various matrices in Matlab® is very easy and very useful.

Do not forget to leave your comments and questions below about the taking inverses of various matrices in Matlab® below. 

If you want further coding examples about taking inverses of various matrices 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!