M={{2,-1,3,1},{1,4,-2,3},{17,-28,41,-15}};
RowReduce[M]//MatrixForm
MatrixRank[M]