Advertisement
wereduck

Untitled

Mar 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.63 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4.  
  5. t=linspace(-3*pi,3*pi,200);
  6. y=4*sin(3*t+pi/3);
  7. f=cos(2*t+pi/3);
  8. ff=@(t)cos(2*t+pi/3);
  9. S=quad(ff,-3*pi,3*pi)
  10. H=sqrt(S)
  11. g=y+f;
  12. h=y.*f;
  13. k=sinc(t);
  14. kk=@sinc;
  15. S=quad(kk,-3*pi,3*pi)
  16. H=sqrt(S)
  17.  
  18. subplot(5,1,1);
  19. plot(t,y,'r');
  20. xlabel('czas t[s]');
  21. ylabel('y[t]');
  22. grid on
  23.  
  24. subplot(5,1,2);
  25. plot(t,f,'c');
  26. xlabel('czas t[s]');
  27. ylabel('f[t]');
  28. grid on
  29.  
  30. subplot(5,1,3);
  31. plot(t,g,'m');
  32. xlabel('czas t[s]');
  33. ylabel('g[t]');
  34. grid on
  35.  
  36. subplot(5,1,4);
  37. plot(t,h,'g');
  38. xlabel('czas t[s]');
  39. ylabel('h[t]');
  40. grid on
  41.  
  42. subplot(5,1,5);
  43. plot(t,k,'b');
  44. xlabel('czas t[s]');
  45. ylabel('k[t]');
  46. grid on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement