Created: 2024/09/23 11:57

Revision of initial class:

  1. Row/column: A = [1; 2; 3]
  2. 3x3 matrix
  3. size func
  4. length func: max of row/col
  5. Transpose matrix
  6. Colon matrix: x:y:z
  7. horcat: [X A]
  8. Row/column selection: A(x, :)
  9. Element replacement
  10. A(2:3, [1, 3])
  11. Deletion: A(3, :) = []
  12. funcs: zeros, ones, eye, fliplr, magic, linspace
    1. diag: two use case: i) diag(A) where A is a column matrix produces a new diagonal matrix, ii) diag(A) where A is a matrix (not diagonal) produces a new column matrix containing the diagonal elements of A.
  13. Practice: prime, odd/even, sum of odds
⇪