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.

## Leave a Reply