SIZE Specification (MATRIX-END MATRIX command)
The SIZE
specification
is a matrix expression that, when evaluated, specifies the size of
the matrix to be read.
- The expression should evaluate to a two-element row or column vector. The first element designates the number of rows in the matrix to be read; the second element gives the number of columns.
- Values of the
SIZE
specification are truncated to integers if necessary. - The size expression may be a constant, such as
{5;5}
, or a matrix variable name, such asMSIZE
, or any valid expression, such asINFO(1,:)
. - If you use a scalar as the size expression, a column
vector containing that number of rows is read. Thus,
SIZE=1
reads a scalar, andSIZE=3
reads a 3 × 1 column vector.
You must include a SIZE
specification whenever you name an entire matrix (rather than a
submatrix) on the READ
statement.
If you specify a submatrix, the SIZE
specification is optional but, if included, must agree with the
size of the specified submatrix.