Change mode of the matrix input file