Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Many Thanks first! I've tried your method, my new question is after use P1 = Inverse[P], now I have P^1, however I didn't see a diagonal matrix after P1.m.P. Could you help me with this? Thanks again!