Advertisement
albert828

Lab2 z4 Sin ograniczony exp

Nov 9th, 2017
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.29 KB | None | 0 0
  1. clf;   clear all;subplot(111);
  2.  
  3. % dane wejsciowe
  4. T = 2;
  5. N=1000;
  6. krok_t=T/N;
  7. t=0:krok_t:T-krok_t;
  8. a=2;
  9. f=10;
  10. A=1;
  11. x=exp(-a*t);
  12.  
  13. x1=A*sin(2*pi*f*t);
  14.  
  15. plot(t,x1.*x); grid on
  16. xlabel('Czas [s]')
  17. ylabel('Sygnal 1')
  18. hold on
  19.  
  20. plot(t,x,'--r');
  21. hold on
  22.  
  23. plot(t,-x,'--r');
  24. hold on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement