Vectors, Matrices, and Tables
>
Working With Arrays
>
Example: Row, Column, and Index Operators
Example: Row, Column, and Index Operators
1.
Define a 10 x 10 matrix:
i
0
9
j
0
9
M
i
j
i
j
2
M
0
1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
10
4
5
6
7
8
9
10
11
12
13
9
10
11
12
13
14
15
16
17
18
16
17
18
19
20
21
22
23
24
25
25
26
27
28
29
30
31
32
33
34
36
37
38
39
40
41
42
43
44
45
49
50
51
52
53
54
55
56
57
58
64
65
66
67
68
69
70
71
72
73
81
82
83
84
85
86
87
88
89
90
2.
Use the column operator to extract column 2:
M
2
4
5
6
7
8
9
10
11
12
13
3.
Use the row operator to extract row 5:
M
5
5
6
9
14
21
30
41
54
69
86
4.
Use the index operator to extract the
(ro, co)
element:
ro
2
co
4
M
ro
co
18
Copy Expressions