read-matrix.c