Working with Matrices

Using Assignment Statements

Assignment statements create matrices by evaluating expressions and assigning the results to a matrix. The expressions can be composed of operators (for example, the matrix addition operator (+)), functions (for example, the INV function), and subscripts. Assignment statements have the following general form:

{result} = {expression};
where result is the name of the new matrix and expression is an expression that is evaluated. The resulting matrix automatically acquires the appropriate dimension, type, and value. Details about writing expressions are described in the section "Using Matrix Expressions".


Simple Assignment Statements

Matrix-Generating Functions

Index Vectors

Previous Page | Next Page | Top of Page