Matrix Operations and Linear Equations in MATLAB
Format short, long format, format rat (format is the x / y), format short (as is 3 * 10-5 = 3e-5). A = [; ;]. To extract a positive one: A(2,2). Changing a number in one position: A(row, column) = number in that position.
Write a whole line: A(row,:). or A(row, 2:4) - the columns you want from that row. For columns it is the same but in reverse: A(:, 3:7). Extract a submatrix A(2:3, 2:3) - ever-growing range. Transpose: A.'. Conjugate matrix (star A*): A'. Matrix for blocks: [A | E] - like n-th row or [A; E] - so I place it under.
Matrix by number unit: 23 * ones(3). Identity: eye(x, y).
Systems of Linear Equations Ax = b:
- Rank(A) = rank(A | b) = No incog. - SCD: x = A \ b
- Rank(A) = rank(A | b)
...