Variable Specification (MATRIX-END MATRIX command)
The variable reference on the READ
statement is a matrix variable name,
with or without indexes.
For a name without indexes:
-
READ
creates the specified matrix variable. - The matrix need not exist when
READ
is executed. - If the matrix already exists, it is replaced by the matrix read from the file.
- You must specify the size of the matrix using the
SIZE
specification.
For an indexed name:
-
READ
creates a submatrix from an existing matrix. - The matrix variable named must already exist.
- You can define any submatrix with indexes; for example,
M(:,I)
. To define an entire existing matrix, specifyM(:,:)
. - The
SIZE
specification can be omitted. If specified, its value must match the size of the specified submatrix.