|
Department of Engineering |
|
|
Next: Maths
Up: Matrix operations
Previous: Matrix operators
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])