input data on a matrix table