Advertisement
Guest User

Untitled

a guest
Jan 29th, 2020
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. clear;
  2. mac = [5.1 5.2 5.3; 4.1 4.2 4.3; 0 0 1];
  3. x = [-1:0.1:1];
  4. y = x.*x.*x;
  5. fun = [x;y;ones(size(x))];
  6.  
  7. fun = mac*fun;
  8.  
  9. x = fun(1,:);
  10. y = fun(2,:);
  11. plot(x,y);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement