Matrix and Vector Construction

Matrices, arrays, vectors, and special matrices

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.

MuPAD Functions

arrayCreate an array
bernsteinBernstein polynomials
bernsteinMatrixBernstein matrix
densematrixCreate a matrix or a vector
doprintPrint large matrices
hfarrayCreate an array of hardware floating-point values
matrixCreate a matrix or a vector
hessianHessian matrix of a scalar function
jacobianJacobian matrix of a vector function
linalg::hessenbergHessenberg matrix
linalg::hilbertHilbert matrix
linalg::invhilbertInverse of a Hilbert matrix
linalg::invpascalInverse of a Pascal matrix
linalg::pascalPascal matrix
linalg::randomMatrixGenerate a random matrix
linalg::toeplitzToeplitz matrix
linalg::vandermondeVandermonde matrix
linalg::invvandermondeVandermonde matrices and their inverses
linalg::wiedemannSolving linear systems by Wiedemann's algorithm

Examples and How To

Create Matrices

MuPAD supports creating and operating on vectors and multidimensional matrices.

Create Vectors

Vectors in MuPAD do not form a separate data type.

Create Special Matrices

MuPAD provides functions for creating special types of matrices such as identity, diagonal, Hilbert, Toeplitz, and other matrices.

Access and Modify Matrix Elements

MuPAD lets you access and change each individual element of a vector or a matrix.

Create Matrices over Particular Rings

The matrix command creates a matrix over Dom::ExpressionField().

Concepts

Use Sparse and Dense Matrices

When you use matrices in MuPAD computations, both computational efficiency and memory use can depend on whether the matrix is sparse or dense.

Linear Algebra Library

Use only in the MuPAD Notebook Interface.