When argument B is a multidimensional array, the index entry [I] can be
used to
specify the coordinate that is acted on. If the index entry is omitted, the last co-
ordinate (columns) is acted on. If the eB form is used, then the first coordinate
is acted on:
EZ v 1: I.,
3 2
6 s
SAVE:
MUCI-I
MI:) I? ti:
'r' 1: M E
MORE
I .[ME
S A
V Ei:
M 1.1 c: I-I
M1JC:I-1
!5AVE
. .. .
mME:
M 0 R 1,:
E: V A
!ii
ti c 1.J M
EI: ROM
I, t1:i: 'I'
EVA$;
I*KUM
EROM
E:Mrr
MORE:
TIME:
s A
V Ei:
MUCH
4) c: :I. :n A
\The first coordinate (plane) is specified;
the planes are reversed.
rt, I:: 2 ::I n
LThe second coordinate (rows) is specified;
the rows in each plane are reversed.
tD c 3 ::I n
--The third coordinate (columns) is
specified; the columns in each plane are
reversed.
(D A
L The last coordinate is acted on.
@A
--The first coordinate is acted on.
90
Dyadic (Two-Argument) Form: Rotate A$[Il B or A$B or AeB
(I ,/' 'i
The rotate function rotates the elements of argument B the number of positions
specified by argument A. If argument A is positive, then the elements of
argument B are rotated to the left (rows), or upward (columns). If A is negative,
the elements are rotated to the right (rows), or downward (columns). Argument B
can be any expression. The shape of the result is the same as that of argument B.
When argument B is a multidimensional array, the index entry [I] can be used to
specify the coordinate that is acted on. If the index entry is omitted, the last co-
ordinate (column) is acted on. If the AeB form is used, then the first coordinate
is acted on.
If argument B is a vector, then argument A must be a scalar or single-element array.
If argument B is a matrix, then argument A
must be a scalar or vector. When
argument A is a vector, the number of elements in argument A must be the same as
the number of elements in the coordinate being rotated. For example, if B is a 3
by 4 matrix (each row has four elements) and the row coordinate is specified, A
must have four elements:
4 5 1 2 3
-?(I) 1
3 14. 5 1. 2
B 4.. 3
IEC
:I. 2 3
3 6 7
'7 1 0 1. :I.
:1 0
5 2 7
9 6 1. 1.
1. 1 I) 3
0 I
I 2 3
6 '7 13
I 1. :I. 2 7
0 1.
1. a 3
6 '7 13
:I. I. 12 9
I. 0
3 2 7
9 h 1. 1.
1. 1. I) 3
I+ f' :I. 2 3 11. s 6 '7 13 '2 :I. 0 :I. 1. :I. 2
The first coordinate (rows) is specified;
therefore, the rotation is between rows.
I+
€1
:J. 2
12
Lk
8
1.1
5 -The second coordinate (columns) is specified;
I. 0
20B
I ;~UC~IB
2 Q, c 2 :I p
therefore, the rotation is between columns.
,.! -The last coordinate is acted on.
1. 0
I ,?@B
1 ;:
Lb -The first coordinate is acted on.
8
Ac---l 0 1 2
n
Arb c 1. 3 B
9 2 1. :I. CI
1. 4 3 1.2
5 :I. 0 '7 11.
- 1. 0 '" :I. ^. 2
91
Previous Page Next Page