Products & Services Solutions Academia Support User Community Company

Learn more about Symbolic Math Toolbox   

rref - Compute reduced row echelon form of matrix

Syntax

rref(A)

Description

rref(A) computes the reduced row echelon form of the symbolic matrix A. If the elements of a matrix contain free symbolic variables, rref regards the matrix as nonzero.

Examples

Compute the reduced row echelon form of the magic square matrix:

rref(sym(magic(4)))

The result is:

ans =
[ 1, 0, 0,  1]
[ 0, 1, 0,  3]
[ 0, 0, 1, -3]
[ 0, 0, 0,  0]
 

Compute the reduced row echelon form of the following symbolic matrix:

syms a b c;
A = [a b c; b c a; a + b, b + c, c + a];
rref(A)

The result is:

ans =
[ 1, 0, -(a*b - c^2)/(a*c - b^2)]
[ 0, 1, -(b*c - a^2)/(a*c - b^2)]
[ 0, 0,                        0]

See Also

eig | jordan | rank | size

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS