Nitin400

EX1

Aug 3rd, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. clc
  2. close all
  3. clear all
  4. n=-5:1:5;
  5. y=[ones(1,5),zeros(1,1),ones(1,5)];
  6. subplot(1,3,1)
  7. stem(n,y)
  8. hold on
  9. xlabel('lal')
  10. ylabel('hra')
  11. title('dharmendra dixit')
  12. x=-5:1:5;
  13. t=[zeros(1,5),ones(1,1),zeros(1,5)];
  14. subplot(1,3,2)
  15. stem(x,t)
  16. hold on
  17. z=-5:1:5;
  18. r=[zeros(1,5),1,ones(1,5)];
  19. subplot(1,3,3)
  20. stem(z,r)
Add Comment
Please, Sign In to add comment