= MATLAB rref = The '''`rref`''' function calculates the [[LinearAlgebra/Elimination#Reduced_Row_Echelon_Form|reduced row echelon form]] of a matrix. <> ---- == Usage == {{{ A = [1 2 1 2; 3 8 1 12; 0 4 1 2]; B = rref(a) }}} The optional second return value is a vector of pivot column indices. {{{ [B, pivotsB] = rref(a); }}} ---- CategoryRicottone