Basic
A matrix has 3 rows and 2 columns, so it is a 3x2 matrix.
- refers to the element in the th row and th column of matrix A
- refers to the element in the th row of the vector.
- In general, all our vectors and matrices will be 1-indexed.
- Matrices are usually denoted by uppercase names while vectors are lowercase.
- “Scalar” means that an object is a single value, not a vector or matrix.
- refers to the set of scalar real numbers.
- refers to the set of n-dimensioned vectors of real numbers
Addition
Matrix dimensions must agree
Plussing is just add each coordinate numbers together.(Minus as well)
Multiplication
Matrix * number
Plussing is just add each coordinate numbers together.(Minus as well)
Matrix * vector
$
([mn][n1] = [m1])
$
Matrix * matrix
Warnings
Two properties of matrix multiple:
- Not commutative.
- Associative.
Inverse & transpose
Inverse
The inverse of a matrix is denoted . Multiplying by the inverse results in the identity matrix.
A non square matrix does not have an inverse matrix. We can compute inverses of matrices in octave with the pinv(A) function.
Invertibility:
Transpose
In other words: