Shafayat__

Untitled

Aug 18th, 2023
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.37 KB | None | 0 0
  1. clc;
  2. clear all;
  3. close all;
  4.  
  5. t=-10:0.001:10;
  6. step= t>= 0;
  7. impulse= t==0;
  8. ramp= (t>=0).*t;
  9.  
  10. subplot(3,1,1);
  11. plot(t,step);
  12. xlabel('Time');
  13. ylabel('Amplitude');
  14. title('Unit step');
  15.  
  16. subplot(3,1,2);
  17. plot(t,impulse);
  18. xlabel('Time');
  19. ylabel('Amplitude');
  20. title('Unit Impluse');
  21.  
  22. subplot(3,1,3);
  23. plot(t,ramp);
  24. xlabel('Time');
  25. ylabel('Amplitude');
  26. title('Unit ramp');
Advertisement
Add Comment
Please, Sign In to add comment