Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
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 ×m matrix has n rows and m columns.


Scalars

Matrices with Multiple Elements

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.