Advertisement
Guest User

Untitled

a guest
Jun 13th, 2019
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.27 KB | None | 0 0
  1. t = linspace(-4, 4, 1000);
  2. x = 2*t.^3 - 3*t.^2 - 12*t;
  3. y = 2*t.^3 + 6*t.^2 - 18*t;
  4. figure(1);
  5. plot(x, y, 'k')
  6. hold on;
  7. plot(-20, 4, 'ro', [-20 -20], ylim, 'r', 7, 22, 'bo', [7 7], ylim, 'b');
  8. hold off;
  9. legend('c', 'P_1', 'e_1', 'P_2', 'e_2');
  10. xlabel('x');
  11. ylabel('y');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement