Symbolic Math Toolbox    
rref

Reduced row echelon form.

Syntax

Description
rref(A) is the reduced row echelon form of the symbolic matrix A.

Examples
rref(sym(magic(4))) returns


 real rsums