Working with Matrices

Entering Data as Matrix Literals

The most basic way to create a matrix is to define a matrix literal, either numeric or character, by entering the matrix elements. A matrix literal can be a single element (called a scalar), a single row of data (called a row vector), a single column of data (called a column vector), or a rectangular array of data (called a matrix). The dimension of a matrix is given by its number of rows and columns. An n x m matrix has n rows and m columns.


Scalars

Matrices with Multiple Elements

Previous Page | Next Page | Top of Page