Matrix input