MATLAB matrix inverse

inv( ) command or function gives the inverse of a matrix, after reading this MATLAB matrix inverse topic, you will know the theory and examples.


Syntax:

inv(n)

  • n is any square matrix.

Example: To find the inverse of matrix A as given below.

$A = \left[ {\begin{array}{*{20}{c}}
3&2 \\
{12}&{34}
\end{array}} \right]$

Output:

A =

3    2
12   34


ans =

0.4359    -0.0256
-0.1538    0.0385

Leave a Comment

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

error: Content is protected !!
Scroll to Top