Cahged $MATRIX to $RMATRIX