Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. figure(1)
  2. subplot(2,2,1)
  3. x=linspace(0,2*pi,50);
  4. y1=sin(x);
  5. y2=sin(x).*sin(x);
  6. y3=sin(2*x);
  7. plot(x,y1,'red +' , x,y2,'blue -' , x,y3 ,'green *')
  8. legend('y1' , 'y2', 'y3')
  9.  
  10. subplot (2,2,2)
  11. t=linspace(-pi,pi,50);
  12. y4=sin(3*t);
  13. polar(t,y4,'r')
  14.  
  15. subplot(2,2,3)
  16. a=[1 4 8]
  17. B=rand(3,3)
  18. bar(a,B)
  19.  
  20. subplot(2,2,4)
  21. k=[20 30 10 40]
  22. pie(k)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement