Guest User

Untitled

a guest
Dec 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. %%
  2. clc
  3. P=[1 0 1; 1 1 1;0 1 1];
  4. D=[1 0 0;0 1 0;0 0 2]
  5. A=P*D*inv(sym(P))
  6. syms a b c d e f g h k
  7. B=[a b c;d e f; g h k];
  8. M=[A*B==B*A]
  9. H=[0 1 1 1 0 0 -1 0 0 0;...
  10. 1 2 1 0 -1 0 0 1 0 0;...
  11. 1 1 0 0 0 1 0 0 -1 0;...
  12. 1 0 0 -2 -1 -1 1 0 0 0;...
  13. 0 1 0 1 0 1 0 1 0 0;...
  14. 0 0 1 -1 -1 -2 0 0 1 0;...
  15. 1 0 0 -1 0 0 0 -1 -1 0;...
  16. 0 1 0 0 -1 0 1 2 1 0;...
  17. 0 0 1 0 0 -1 -1 -1 0 0]
  18. rref(sym(H))
  19. B=[3 -3 3;1 1 1;1 1 1]
  20. A*B
  21. B*A
  22. C=[5 -4 3;2 1 1;1 1 2]
  23. C*A
  24. A*C
  25. B*C
  26. C*B
Add Comment
Please, Sign In to add comment