MATLAB Function Reference Previous page   Next Page

Reduced row echelon form



R = rref(A) produces the reduced row echelon form of A using Gauss Jordan elimination with partial pivoting. A default tolerance of (max(size(A))*eps *norm(A,inf)) tests for negligible column elements.

[R,jb] = rref(A) also returns a vector jb such that:

[R,jb] = rref(A,tol) uses the given tolerance in the rank tests.

Roundoff errors may cause this algorithm to compute a different value for the rank than rank, orth and null.


Use rref on a rank-deficient magic square:

See Also

inv, lu, rank

Previous page  round rsf2csf Next page

© 1994-2005 The MathWorks, Inc.