upload matrix.c