Question: how to rref in matlab?
Answer: example. R = rref( A ) returns the reduced row echelon form of A using Gauss-Jordan elimination with partial pivoting.
R = rref( A , tol ) specifies a pivot tolerance that the algorithm uses to determine negligible columns.
[ R , p ] = rref( A ) also returns the nonzero pivots p .