Advertisement
Guest User

Untitled

a guest
May 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.25 KB | None | 0 0
  1. X = [2,3,4 ; 3,3,4 ; 4,4,4 ; 5,4,4 ; 5,4,5 ; 4,4,5 ; 3,3,5 ; 2,3,5 ; 2,3,4];
  2. Xprim = [1 0 0 0; 0 1 0 0; 0 0 1 0; 3 2 1 1];
  3. plot3(X(:,1), X(:,2), X(:,3));
  4.  
  5. hold on
  6.  
  7. xj = [X ones(9,1)];
  8.  
  9. res = xj * Xprim;
  10.  
  11. plot3(res(:,1), res(:,2), res(:,3));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement