Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Understanding the Language

Creating Matrices from Matrix Literals

Creating matrices using matrix literals is easy. You simply input the element values one at a time, usually inside of 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. Below are some simple examples of matrix literals, some with a single element (scalars) and some with multiple elements. For more information on matrix literals, see Chapter 4, "Working with Matrices."


Scalar Literals

Numeric Literals

Character Literals

Repetition Factors

Reassigning Values

Assignment Statements

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

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