IBM 5110 User Manual page 23

Apl
Table of Contents

Advertisement

18
An array with two coordinates (rows and columns) is called a matrix.
Columns
I'--~'---"\
1
2
3
4
6
7
8
Rows
!}
10
11
12
To generate a matrix, you specify X (left argument) as two numbers,
which are the lengths of the two coordinates. The first number in X is
the length of the first coordinate, or number of rows, and the second
number is the length of the second coordinate, or number of columns.
The following example shows how a matrix is generated:
1 2
~3
lJ.
5 6
ABeD
EFGH
ABC
DEF
M~2
3pl 2 3 4 5 6
M
M'''2
4~)'
ABCDEFGH ·
M
Ml'<!
~~(.)M
M:J.
Note that the values in the right argument are arranged in row order in
tho arrays. If the right argument has more than one row, the elements
aro taken from the right argument in row order.

Advertisement

Table of Contents
loading

Table of Contents