Create matrix.txt