Array Variable

An array variable references a dynamic or dimensioned array.

Example(s)

When an array variable is used to describe a dimensioned array, it must be used with a subscript to indicate the specific variable descriptor in the array:

a(10) or a(n)

Otherwise it must be used in a mat statement to indicate all elements in the array:

mat a = ''

This sets every variable in the array a to null.

matread a from...

This reads an item and parses the attributes to the dimensioned array a.

See Also

Array References, Arrays, Arrays and Relational Expressions, extract() Function, inmat() Function, insert() Function, locate Statement, matread Statement, matwrite Statement, Nonfatal Error Condition, read Statement, replace() Function, write Statement