MAT PLOT CELLS
MAT PLOT CELLS fills a rectangular area with the colors assigned by a 2-dimensional array.
Let M be a 2-dimensional array.
MAT PLOT CELLS, IN x1 , y1 ; x2 , y2 : M
(x1 , y1) and (x2 , y2) are 2 diagonal vertices of the rectangular.
The point (x1 , y1) is the base point.
10 DIM A(2,3) 20 DATA 1,2,3 30 DATA 4,5,6 40 MAT READ A 50 SET WINDOW 0,4,0,4 60 MAT PLOT CELLS,IN 0,0; 2,3 :A 70 END
A rectangle whose diagonal vertices are (0,0) and (2,3) is divided into 2 vertically, and 3 horizontally, and each segments are painted with the color assigned with the array A.
An incorrect color index causes a non-fatal exception. That is, a MAT PLOT CELLS statement can raise an exception only when it is written in a WHEN-body, but regularly it does not stop the execution of the program.