function n=row_reduce(m); %Puts a matrix into row reduced form i=1; j=1; a=m; c=size(a); while and(i<=c(1),j<=c(2)) if a(i,j)== 0 k=i; while and(a(k,j)==0,k