Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Invert Matrices

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

To find the inverse of a matrix, enter 1/A or A^(-1):

A := matrix([[a, b], [c, d]]):
B := matrix([[1, 2], [3, 4]]):
1/A; B^(-1)

When MuPAD® cannot compute the inverse of a matrix, it returns FAIL:

C := matrix([[1, 1], [1, 1]]): 1/C

Was this topic helpful?