MATH319 Slides

166 Appendix A: MATLAB commands continued

≫B’ [computes the transpose Bt of B]

≫ rref(A) [finds the reduced echelon form of A]

≫ rank(A) [finds the rank of A]

≫poly(A) [finds the coefficients of the characteristic polynomial of square matrix A]

≫eig(A) [finds the eigenvalues of square matrix A, in a list]

≫ jordan(A) [finds the Jordan canonical form of A]

≫[W,D]=eig(A) [gives a matrix W with columns that are eigenvectors of A and diagonal matrix D]

≫ A2 [computes the matrix product A2]

≫A.2 [creates matrix by squaring each entry of A; note dot]

≫A*B [calculates the matrix product A⁢B]

≫expm(A) [calculates the matrix exponential of A]

≫exp(A) [calculates the matrix formed by taking the exponential of each entry of A]

≫syms x [introduces algebraic variable x]