Advertisement
Pappu19

1

Sep 23rd, 2021
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.12 KB | None | 0 0
  1. f=2
  2. a=5
  3.  
  4. t=[0:0.01:1];
  5. y=a*sin(2*pi*t*f);
  6. plot(t,y);
  7. hold on;
  8.  
  9. t2=[0:0.125:1]
  10. y2=a*sin(2*pi*t2*f)
  11. stem(t2,y2)
  12.  
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement