** Top 10 Matlab Commands for Linear Algebra Students**

- basic input: "A = [ 1 2 3; -1 2 3; 2 4 5 ]" inputs a 3x3 matrix by rows;
variants

"b = [ -1 2 1]' " or "b = [ -1; 2; 1]" to input a column vector b, and

"C = [ A b ]" to produce a matrix C containing A augmented with b.
- rref: "rref(A)" reduces A to reduced echelon form; see also
"rrefmovie(A)".
- basic arithmetic: "A*B", "A+B", "A\b" to multiply and add matrices,
solve Ax = b.
- rand: "rand(6,4)" produces a random 6x4 matrix.
- det: "det(A)" computes the determinant of a square matrix A.
- inv: "inv(A)" tries to compute the inverse of a square matrix A.
- eig: "eig(A)" computes eigenvalues(vectors) for square A; try
"help eig" for more info.
- format: "format compact" reduces output spaces; also try
"format long", "format rat", "help format".
- help: "help command" gives information about "command", e.g. "help rref".
- lookfor: "lookfor keyword" tries to find commands relevant to "keyword";
e.g. "lookfor null".