Format matrix info