Apply transformation matrix in cmd exp