how do i edit a matrix?