Documentation

This is machine translation

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

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.

 `array` Create an array `bernstein` Bernstein polynomials `bernsteinMatrix` Bernstein matrix `densematrix` Create a matrix or a vector `doprint` Print large matrices `hfarray` Create an array of hardware floating-point values `matrix` Create a matrix or a vector
 `hessian` Hessian matrix of a scalar function `jacobian` Jacobian matrix of a vector function `linalg::hessenberg` Hessenberg matrix `linalg::hilbert` Hilbert matrix `linalg::invhilbert` Inverse of a Hilbert matrix `linalg::invpascal` Inverse of a Pascal matrix `linalg::pascal` Pascal matrix `linalg::randomMatrix` Generate a random matrix `linalg::toeplitz` Toeplitz matrix `linalg::vandermonde` Vandermonde matrix `linalg::invvandermonde` Vandermonde matrices and their inverses `linalg::wiedemann` Solving 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.

Mathematical Modeling with Symbolic Math Toolbox

Get examples and videos