deushiro

Untitled

Mar 8th, 2021
851
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.63 KB | None | 0 0
  1. a = [1 -2 0];
  2. b = [0 1 1];
  3. c = [1 2 2];
  4. d = [a;
  5.     b;
  6.     c];
  7. determinant = det(d)
  8. figure
  9. grid on
  10. quiver3(0, 0,0, 1, 0,0, 1,'black','lineWidth',4)
  11. hold on
  12. axis equal
  13. quiver3(0, 0,0, 0, 1,0, 1,'black','lineWidth',4)
  14. quiver3(0, 0, 0, 0, 0, 1,1,'black','lineWidth',4)
  15. quiver3(0, 0,0, 1, -2,0, 1)
  16. quiver3(0, 0,0, 0, 1,1, 1)
  17. quiver3(0, 0,0, 1, 2,2, 1)
  18. ort_a = a ./ norm(a);
  19. ort_b = b ./ norm(b);
  20. ort_c = c ./ norm(c);
  21. quiver3(0, 0,0, ort_a(1), ort_a(2), ort_a(3), 1,'black','lineWidth',4)
  22. quiver3(0, 0,0, ort_b(1), ort_b(2), ort_b(3), 1,'black','lineWidth',4)
  23. quiver3(0, 0,0, ort_c(1), ort_c(2), ort_c(3), 1,'black','lineWidth',4)
Advertisement
Add Comment
Please, Sign In to add comment