Lessons
Topics covered
- Difference between scalars, vectors and matrices
- Use of colons for vectors and matrices
- linspace(), logspace(), magic(), rand(), zeros(), ones()
- Use of square brackets and semi-colons
- Transposing arrays, fliplr(), flipud()
Topics covered
- Indexing individual elements
- Indexing rows
- Indexing columns
- Indexing groups of elements
- You cannot index out of bounds
Topics covered
- Element-wise operators: .*, ./, .^
- Visual example of array operations
- Difference between array and matrix operations
- Example where both would work (square matrices)
Topics covered
- Addition/subtraction, transposition, scalar multiplication, matrix multiplication
- Matrix functions: eye(), inv() or A^-1, det(), cross(), dot(), repmat()
Topics covered
- Example on solving a system of linear equations
- Using the left division operator \ for AX = B