Create matrix-gen.txt