SAS Institute. The Power to Know

SAS/IML(R) 9.2 User's Guide

Previous | Next
Understanding the Interactive Matrix Language

Creating Matrices from Matrix Literals

Creating matrices by using matrix literals is easy. You simply input the element values one at a time, usually inside braces. Representing a matrix as a matrix literal is not the only way to create matrices. A matrix can also be created as a result of a function, a CALL statement, or an assignment statement. The following sections present some simple examples of matrix literals, some with a single element (scalars) and some with multiple elements.

For more information about matrix literals, see Chapter 4.


Scalar Literals

Numeric Literals

Character Literals

Repetition Factors

Reassigning Values

Assignment Statements

Previous | Next | Top of Page