Notation

Navigation:  Language Reference > Matrices and Vectors >

Notation

Previous pageReturn to chapter overviewNext page

Matrix sizes in 20-sim are always denoted by [n,m] where n is the numbers of rows and m is the numbers of columns. Elements can separately be denoted with commas (,) distinguishing between row elements and semicolons (;) distinguishing between rows.

matrix size

matrix form

20-sim notation

[4,1]

1

3

5

7

[1;3;5;7]

[1,4]

1 3 5 7

[1,3,5,7]

[2,3]

1 2 3

4 5 6

[1,2,3;4,5,6]

[3,2]

1 2

3 4

5 6

[1,2;3,4;5,6]

 

Column vectors are matrices with only one column. Consequently the column size may be omitted in the notation.

column size

column form

20-sim notation

[4]

1

3

5

7

[1;3;5;7]