The MAT command is used to either assign every element in a specified array to a single value or to assign the entire contents of one array to another.
MAT Array = expression
Array, Array1 and Array2 are all pre-dimensioned arrays declared with the DIM statement. Expression can evaluate to any data type.
Note that if any element of the array Array2 has not been assigned a value then a runtime error will occur. This can be avoided by coding the statement MAT Array2 = " after the DIM statement.