Advertisement
Guest User

Practical 2

a guest
Oct 17th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. Clc ;
  2. Close all ;
  3. Clear all ;
  4. M= [0.1,-0.2,0.3];
  5. N=[0.2,0.1,0.3];
  6. P=[0.4,0,0.1];
  7. Rnm=M - N
  8. Rpm=M-P
  9. A=dot*(Rnm*Rpm);
  10. B=norm(Rpm);
  11. C=Rpm/B
  12. Projection=dot(Rnm*C)
  13. D=norm(Rnm)
  14. Angle =acosd(Rnm)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement