This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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.