MATLAB Programming/Advanced Topics/Numerical Manipulation/More complicated matrix operations

From Wikibooks, open books for an open world
< MATLAB Programming‎ | Advanced Topics/Numerical Manipulation
Jump to navigation Jump to search

Row reduced echelon form[edit | edit source]

To find the Row reduced echelon form of a matrix just use the MATLAB command rref


a=[1 2 3; 4 5 6];

It's that simple. (I believe that MATLAB uses the Gauss-Jordan elimination method to make this computation; don't quote me on that (I'm not even sure if there are other methods)).

Inverse[edit | edit source]

To find the inverse of a matrix use the MATLAB command inv. (note that the matrix must be square)


a=[1 2 3;4 5 6;7 8 9];

Cofactor, minor[edit | edit source]

The Jacobian[edit | edit source]


e is a scalar vector, w is a vector of functions. Also, this does not solve equations symbolically unless you define the w vector functions as symbolics prior to executing this statement.


syms x y z;
w=[x y z];
e=[1 2 3];