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
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
C := matrix([[1, 1], [1, 1]]): 1/C