Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

linalg::matdim

Dimension of a matrix

MuPAD® notebooks are not recommended. Use MATLAB® live scripts instead.

MATLAB live scripts support most MuPAD functionality, though there are some differences. For more information, see Convert MuPAD Notebooks to MATLAB Live Scripts.

Syntax

linalg::matdim(A)

Description

linalg::matdim(A) returns the dimension of the matrix A, i.e., the number of rows and columns of A.

linalg::matdim is an interface function for the method "matdim" of the matrix domain of A, i.e., instead of linalg::matdim(A) one may call A::dom::matdim(A) directly.

Examples

Example 1

The dimension of the matrix:

A := matrix([[1, 2, 3, 4], [3, 1, 4], [5, 6]])

can be determined by:

linalg::matdim(A)

Related Examples

Parameters

A

An m×n matrix of a domain of category Cat::Matrix

Return Values

List [m, n], where m is the number of rows and n is the number of columns of A.

See Also

MuPAD Functions

Was this topic helpful?