Linear Equations

Linear systems of equations in matrix form


MuPAD® notebooks will be removed in a future release. Use MATLAB® live scripts instead.

To convert a MuPAD notebook file to a MATLAB live script file, see convertMuPADNotebook. MATLAB live scripts support most MuPAD functionality, although there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

MuPAD Functions

detDeterminant of a matrix
normCompute the norm of a matrix, a vector, or a polynomial
linalg::condCondition number of a matrix
linalg::matlinsolveSolving systems of linear equations
linalg::matlinsolveLUSolving the linear system given by an LU decomposition
linalg::rankRank of a matrix
linalg::toeplitzSolveSolve a linear Toeplitz system
linalg::vandermondeSolveSolve a linear Vandermonde system
numeric::detDeterminant of a matrix
numeric::inverseInverse of a matrix
numeric::rankNumerical estimate of the rank of a matrix

Examples and How To

Choose a Solver

The general solvers (solve for symbolic solutions and numeric::solve for numeric approximations) handle a wide variety of equations, inequalities, and systems.

Solve Algebraic Systems

When solving a linear system of symbolic equations, the general solver returns a set of solutions:

Invert Matrices

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

Compute Determinants and Traces of Square Matrices

MuPAD provides the functions for performing many special operations on matrices.

Compute Rank of a Matrix

The rank of a matrix is the number of independent rows of a matrix.

Compute Determinant Numerically

To compute the determinant of a square matrix numerically, use the numeric::det function.


Linear Algebra Library

Use only in the MuPAD Notebook Interface.

Numeric Algorithms Library

Use only in the MuPAD Notebook Interface.