This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
matrices [2015/08/29 10:02] petersen removed |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Matrices ===== | ||
| - | |||
| - | In the context that we will discuss them, matrices are variables that are mxn that m and n > 1. The basic syntax of creating a matrix are shown below. | ||
| - | |||
| - | x = [1 2 3; 4 5 6; 7 8 9] | ||
| - | |||
| - | |||
| - | The semicolon indicates a new row. Both x and y are 3x3 matrices. Arithmetic with matrices is similar to arithmetic with arrays. | ||