Mat

Mat – matrix data type

Calling sequence

A=[a11, a12, ..., a1n;  
   a21, a22, ..., a2n;  
   ...  
   am1, am2, ...; amn]

Parameters

Description
The Mat data type is the basic matrix numerical object. More generally, matrices are two dimensional arrays which contains scalar objects (real or complex numbers, boolean numbers, strings, polynomials). The Mat data type is built from real or complex numbers.

Column vectors are considered as m x 1 matrices and row vectors as 1 x n matrices.

Internally numerical matrices Mat type are stored by default as arrays of double.

Operations on matrices

Matrix methods

Methods from the matint interface

Extraction, insertion, deletion

Empty matrices
Empty matrices are matrices with zero rows or zero columns. Operations with empty matrices are compatible with linear algebra operations. The m x n zero matrix can be factorized as the empty m x 0 matrix * the 0 x n matrix.

For loop control
With a matrix A:

     for col=A  
       ....  
     end

is a loop with size(A,2) iterations, the loop variable col being equal to the ith column of A at the i-th iteration.

Some functions

See also

Authors jpc, bp