To use rref in MATLAB, you need to input a matrix as an argument to the rref() function. The rref() function returns the reduced row echelon form of the matrix using Gaussian elimination. Here is an example:
main.m98 chars6 lines
The output of this code would be:
main.m100 chars6 lines
This is the reduced row echelon form of the matrix A. The rref() function is useful in solving systems of linear equations and in determining the rank and inverse of a matrix.
gistlibby LogSnag