I want to transform a linear system matrix from x basis to z basis where Z=TrX. Tr is obtained through QR factorization. The linear system is in state-space form. Furthermore, I can use the Transformation to obtain regular form matrix for Eigenvalue placement design or Linear-Quadratic minimization feedback sliding mode control.