Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = [1 -2 0];
- b = [0 1 1];
- c = [1 2 2];
- d = [a;
- b;
- c];
- determinant = det(d)
- figure
- grid on
- quiver3(0, 0,0, 1, 0,0, 1,'black','lineWidth',4)
- hold on
- axis equal
- quiver3(0, 0,0, 0, 1,0, 1,'black','lineWidth',4)
- quiver3(0, 0, 0, 0, 0, 1,1,'black','lineWidth',4)
- quiver3(0, 0,0, 1, -2,0, 1)
- quiver3(0, 0,0, 0, 1,1, 1)
- quiver3(0, 0,0, 1, 2,2, 1)
- ort_a = a ./ norm(a);
- ort_b = b ./ norm(b);
- ort_c = c ./ norm(c);
- quiver3(0, 0,0, ort_a(1), ort_a(2), ort_a(3), 1,'black','lineWidth',4)
- quiver3(0, 0,0, ort_b(1), ort_b(2), ort_b(3), 1,'black','lineWidth',4)
- 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