Matrix translation to vector