Advertisement
Guest User

lab2rcs

a guest
Oct 14th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.60 KB | None | 0 0
  1. syms q1 q2 q3 q4 l1 l2 l3 l4
  2.  
  3. R01=TransfoMat('r','z',q1)
  4. R12=TransfoMat('t','z',l1)*TransfoMat('t','x',-l2)*TransfoMat('r','x',q2)
  5. R23=TransfoMat('t','z',l3)*TransfoMat('r','x',q3)
  6. R34=TransfoMat('t','y',q4+l4)*TransfoMat('t','x',l2)
  7.  
  8. R04=R01*R12*R23*R34;
  9.  
  10. M=eval(R04)
  11.  
  12. q1=0;
  13. q2=-pi/20;
  14. q3=pi/20;
  15. q4=10;
  16. l1=5;
  17. l2=2;
  18. l3=5;
  19. l4=5;
  20.  
  21. M=subs(M)
  22.  
  23. R01=subs(R01)
  24. R12=subs(R12)
  25. R23=subs(R23)
  26. R34=subs(R34)
  27.  
  28. D={TransfoMat('r','z',q1) TransfoMat('t','z',l1) TransfoMat('t','x',l2) TransfoMat('r','x',q2) TransfoMat('t','z',l3) TransfoMat('t','x',-l2) TransfoMat('r','x',q3) TransfoMat('t','y',q4+l4)}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement