Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scilab 0.57 KB | None | 0 0
  1. F1 = 1000;      F2 = 1200;
  2. Fe = 9.725e3;   Te = 1/Fe;
  3.  
  4. t = 1:440;
  5. E_F1 = sin(2*%pi*F1*t*Te);
  6. E_F2 = sin(2*%pi*F2*t*Te);
  7.  
  8. trameFSK = [E_F1 E_F2 E_F1 E_F2 E_F1 E_F1 E_F2 E_F2];
  9.  
  10. num_pBande    = [1, 0, -1];
  11. den_pBande_f1 = [26, -40, 24];
  12. den_pBande_f2 = [22, -30, 20];
  13.  
  14. num_pBas = [1, 1];
  15. den_pBas = [29, -27];
  16.  
  17.  
  18. SF1 = filter(num_pBande, den_pBande_f1, trameFSK);
  19. SF2 = filter(num_pBande, den_pBande_f2, trameFSK);
  20.  
  21. SR1 = abs(SF1);
  22. SR2 = abs(SF2);
  23.  
  24. SD1 = filter(num_pBas, den_pBas, SR1);
  25. SD2 = filter(num_pBas, den_pBas, SR2);
  26.  
  27. SD = SD2 - SD1;
  28.  
  29. plot(SD);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement