MatrixRank[{{3,1,4},{1,2,3},{6,2,8}}]