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]$

% create the 2x2 matrix as 
A=[3,2;12,34] 

inv(A)

Output:

A =

3    2
12   34


ans =

0.4359    -0.0256
-0.1538    0.0385

Published by

Electrical Workbook

We provide tutoring in Electrical Engineering.

Leave a Reply

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