Advertisement
Garusek

Untitled

Mar 17th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. L=401;
  2. h=fir1(N-1,0.5);
  3.  
  4. f1=0.2;
  5. f2=0.4;
  6. f3=0.8;
  7.  
  8. tp=0.0;
  9. tk=10.0;
  10. deltat=0.01;
  11. t=[tp:deltat:tk];
  12.  
  13. x1=sin(2*pi*f1*t);
  14. x2=sin(2*pi*f2*t);
  15. x3=sin(2*pi*f3*t);
  16.  
  17. xsuma=x1+x2+x3;
  18.  
  19. fp=(f3*2)/1;
  20. T=1/fp;
  21.  
  22. w=bartlett(L)
  23.  
  24. figure(1)
  25. y1=h*w;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement