MAT READ ☆☆

MAT READ array, array, …, array
assigns data to arrays in order of latter index changing fast.
Example.

10 DATA 1,2,3,4
20 DIM A(2,2)
30 MAT READ A

yields A(1,1)=1, A(1,2)=2, A(2,1)=3, A(2,2)=4.

Let A be an array and m and n be a numeric expression.
MAT READ A(n)
changes the lower bound to option base and the upper bound to n and then assigns data.

MAT READ A(m TO n)
changes the lower bound to m and the upper bound to n and then assigns data.

Example

10 DATA 1,2,3,4,5,6
20 DIM a(10)
30 LET m=-2
40 LET n=3
50 MAT READ a(m TO n)

yields a(-2)=1, a(-1)=2, …, a(3)=6.

2 or 3-dimensional arrays have similar MAT statements.

Note.
Handling of the lower bounds of indices is different from that of MAT statements.