Search Contact information
University of Cambridge Home Department of Engineering
University of Cambridge >  Engineering Department >  computing help
next up previous contents
Next: Maths Up: Matrix operations Previous: Matrix operators

Matrix functions

Functions exist to perform common operations on matrices. A few are listed in table 2
 
Table 2: Matrix functions
inv inverse
det determinant
trace trace
eig eigenvectors and eigenvalues
rank estimate rank
null calculate a basis for the null space
rref Gaussian elimination on an augmented matrix
lu LU decomposition
qr QR decompostion
svd SVD
pinv Pseudoinverse
rot90 rotation of 90 degrees
triu extract upper triangle
tril extract lower triangle

Some functions are especially useful when used with string matrices. E,g.

A='abcdefg'
A=fliplr(A)
A=sort(A)
circshift(A,[0 1])



© Cambridge University Engineering Dept
Information provided by Tim Love
2006-07-24