MATLAB Functions Help Desk

rref, rrefmovie

Purpose

Reduced row echelon form

Syntax

Description

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 so 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.

rrefmovie(A) shows a movie of the algorithm working.

Examples

Use rref on a rank-deficient magic square:

See Also

inv         Matrix inverse

lu          LU matrix factorization

rank        Rank of a matrix



[ Previous | Help Desk | Next ]