MatLab Transform Matrix workup