To find the row echelon form (REF) and the reduced row echelon form (RREF) of matrix A in Matlab, we use the built-in functions rref and ref, respectively. Here's how to do it:
main.m319 chars17 lines
The variable R is the matrix in reduced row echelon form, and s is the solution vector. Since b is zero, the system Ax = b has only the trivial solution x = 0, which is confirmed by s.
gistlibby LogSnag