Matrix index

 

Matrix elements can be referenced by using sequence operations


A

1

[[22,7.25],[38,71.2833],[26,7.925],[35,53.1],[35,8.05]]

2

=A1(1)

3

=A1.(~(1))

4

=A1(3)(1)

5

=A1.to(2)

6

=A1.to(3:5)

7

=A1.to(3:)

8

=A1.m(-2)

9

=A1.m([-2,-4])

10

=A1.m(-2:-4)

A1 Input a matrix

A2 Get the first row of matrix A1

A3 Get the first column of matrix A1

A4 Get the first number in row 3

A5 Get the first 2 rows

A6 Get the numbers from row 3 to row 5

A7 Get the numbers from row 3 to row last

A8 Get the second row from the bottom. m means get numbers from backwards to forwards

A9 Get the second row and the 4throw from backwards to forwards

A10 Get the second row to the 4throw from backwards to forwards