vakho

MathLab 07.12.13

Dec 7th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.96 KB | None | 0 0
  1. %x=-10:1:10;
  2. %y=x.^3-3*x;
  3. %plot(x,y,'--r>', 'LineWidth', 1, 'MarkerEdge', 'b', 'MarkerFaceColor', 'g',...
  4.     %'MarkerSize', 10) , hold on
  5. %clear all
  6. %close all
  7. %fplot(@(x)x.^3-3*x,[-10 10 -10 10])
  8. %fplot(@(x)x.^2,[0 100])
  9. %y=(x.^2+1)./x;
  10. %plot(x,y,'--ro', 'LineWidth', 3, 'MarkerEdge', 'g', 'MarkerFaceColor', 'b',...
  11.     %'MarkerSize', 5)
  12.  
  13. subplot(5,2,[1 3]); fplot(@(x)-5*x+3,[-10 10 -10 10])
  14. subplot(5,2,2); fplot(@(x)4./x,[-10 10 -10 10])
  15. %subplot(4,2,3); fplot(@(x)3*x.^2,[-10 10 -10 10])
  16. subplot(5,2,4); fplot(@(x)-x.^3,[-10 10 -10 10])
  17.  
  18. subplot(5,2,5); fplot(@(x)log2(x),[-10 10 -10 10])
  19. subplot(5,2,6); fplot(@(x)log10(x),[-10 10 -10 10])
  20. subplot(5,2,7); fplot(@(x)sin(x),[0.01 10, -3 3])
  21. subplot(5,2,8); fplot('tan(x)',[-1 1 -1 1])
  22.  
  23. x=-10:1:10;
  24. y=x.^2;
  25. subplot(5,2,9:10); plot(x,y,'--ro')
  26.  
  27. clear all
  28. close all
  29.  
  30. fi = -2*pi:0.01:2*pi;
  31. r = 1/sqrt(2) * (1./cos(fi+pi/4));
  32. subplot(1,2,1); polar(fi, r)
  33. r = 1 - sin(fi);
  34. subplot(1,2,2); polar(fi, r)
Advertisement
Add Comment
Please, Sign In to add comment