Advertisement
Guest User

Untitled

a guest
May 27th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.47 KB | None | 0 0
  1. filter = 4;
  2. f_mod = 175e3;
  3. snr = 10;
  4.  
  5.  
  6. ais_settings();
  7.  
  8. training_sequence = [0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1];
  9. U = [training_sequence, 0 1 1 1 1 1 1 0 1 1 0 0 1 1 0 1 0 1 1 1 1 1 1 0];
  10.  
  11.  
  12. U = 2*(U-0.5);
  13.  
  14.  
  15. S_x = ais_modulate(U, f_mod(k));
  16.  
  17. S_y = ais_awgn(S_x, snr);
  18. I_y = real(S_y);
  19. Q_y = imag(S_y);
  20.            
  21. [I_bb, Q_bb] = ais_chansel(I_y, Q_y, 'AIS1', filter);
  22.            
  23. [f_est1, out1] = ais_freqdet_arctan(I_bb, Q_bb, 300, 12);
  24.  
  25. figure(1); plot(out1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement