Advertisement
sanpai

Integrator and diffrentiator

Jun 22nd, 2013
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. clc;
  2. close all;
  3. syms t;
  4. y=input('Enter the function : ');
  5. %t=0:0.001*(1/T):1/T;
  6. intop=int(y)
  7. difop=diff(y)
  8. figure(1)
  9. ezplot(y,[0,0.1]);
  10. xlabel('time in t');
  11. ylabel('Amplitude ');
  12. title('input signal');
  13. zoom;
  14. grid;
  15. figure(2)
  16. ezplot(intop,[0,0.1]);
  17. xlabel('time in t');
  18. ylabel('Amplitude ');
  19. title('integrator o/p');
  20. zoom;
  21. grid;
  22. figure(3)
  23. ezplot(difop,[0,0.1]);
  24. xlabel('time in t');
  25. ylabel('Amplitude ');
  26. title('diffrentiator o/p');
  27. zoom;
  28. grid;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement