mat2hdr: output readable matrix