Matrix code updated with row and column write