Entering matrix