Matrix Analysis

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


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

curlCurl of a vector field
detDeterminant of a matrix
divergenceDivergence of a vector field
gradientVector gradient
hessianHessian matrix of a scalar function
jacobianJacobian matrix of a vector function
laplacianThe Laplacian
normCompute the norm of a matrix, a vector, or a polynomial
potentialThe (scalar) potential of a gradient field
vectorPotentialVector potential of a three-dimensional vector field
numeric::detDeterminant of a matrix
linalg::adjointAdjoint of a matrix
linalg::angleAngle between two vectors
linalg::charmatCharacteristic matrix
linalg::condCondition number of a matrix
linalg::isHermitianChecks whether a matrix is Hermitian
linalg::isPosDefTest a matrix for positive definiteness
linalg::isUnitaryTest whether a matrix is unitary
linalg::ncolsNumber of columns of a matrix
linalg::nonZerosNumber of non-zero elements of a matrix
linalg::nrowsNumber of rows of a matrix
linalg::permanentPermanent of a matrix
linalg::trTrace of a matrix
linalg::vectorOfType 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.


Linear Algebra Library

Use only in the MuPAD Notebook Interface.

Numeric Algorithms Library

Use only in the MuPAD Notebook Interface.