Documentation

This is machine translation

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

Matrix Analysis

Norm, determinant, condition, curl, divergence, gradient, and more

Note

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.

 `curl` Curl of a vector field `det` Determinant of a matrix `divergence` Divergence of a vector field `gradient` Vector gradient `hessian` Hessian matrix of a scalar function `jacobian` Jacobian matrix of a vector function `laplacian` The Laplacian `norm` Compute the norm of a matrix, a vector, or a polynomial `potential` The (scalar) potential of a gradient field `vectorPotential` Vector potential of a three-dimensional vector field `numeric::det` Determinant of a matrix
 `linalg::adjoint` Adjoint of a matrix `linalg::angle` Angle between two vectors `linalg::charmat` Characteristic matrix `linalg::cond` Condition number of a matrix `linalg::isHermitian` Checks whether a matrix is Hermitian `linalg::isPosDef` Test a matrix for positive definiteness `linalg::isUnitary` Test whether a matrix is unitary `linalg::ncols` Number of columns of a matrix `linalg::nonZeros` Number of non-zero elements of a matrix `linalg::nrows` Number of rows of a matrix `linalg::permanent` Permanent of a matrix `linalg::tr` Trace of a matrix `linalg::vectorOf` Type specifier for vectors

Examples and How To

Compute with Matrices

When performing basic arithmetic operations on matrices, use the standard arithmetic operators.

Compute Determinants and Traces of Square Matrices

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

Compute Determinant Numerically

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

Concepts

Linear Algebra Library

Use only in the MuPAD Notebook Interface.

Numeric Algorithms Library

Use only in the MuPAD Notebook Interface.

Mathematical Modeling with Symbolic Math Toolbox

Get examples and videos