Advertisement
BORUTO-121

subplot_function(24)

Mar 6th, 2022
153
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. clc;clear all;
  2. %%a) circle (1,1) R=2
  3. R=2;
  4. X=[1 1];
  5. fi=0:0.01:2*pi;
  6. x=X(1)+R*cos(fi);
  7. y=X(1)+R*sin(fi);
  8.  
  9. subplot(1,2,1);
  10. plot(x,y,'r--');
  11. title('$(x-1)^2+(y-1)^2=4$','Interpreter','latex');
  12. xlabel('x');
  13. ylabel('y');
  14. hold on;
  15.  
  16.  
  17. %%b)
  18.  
  19. x1=linspace(-1,1,1000);
  20. y1=tan(1\(x1.*x1));
  21.  
  22. subplot(1,2,2);
  23. plot(x1,y1,'g--');
  24. title('$y=\tan{\frac{1}{x^2}}$','Interpreter','latex');
  25. xlabel('x');
  26. ylabel('y');
  27. axis([-1 1 -500 2500]);
  28.  
Advertisement
RAW Paste Data Copied
Advertisement