gmsk_sig.m
上传用户:jy88362166
上传日期:2015-04-26
资源大小:3k
文件大小:1k
源码类别:

通讯编程文档

开发平台:

Matlab

  1. function [s,no] = gmsk_sig(b,Ts,M,no);
  2. %++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  3. % Filename: gmsk_sig.m
  4. %
  5. % Function call: input => [b,Ts,M,no]
  6. % output => [s,no]
  7. %
  8. % Description: 1) Compute the phase by integrating b(k)
  9. % 2) Generate complex envelope
  10. %
  11. % Input: b - Gaussian filter pulses 
  12. % Ts - sample time
  13. % M - no. of samples per bit
  14. %
  15. % Output: s - complex envelope
  16. %
  17. % local var: h - modulation index (0.5)
  18. % Intgral - cumulative sum 
  19. %
  20. % Author    : Jeff Laster, MPRG, Virginia Tech 
  21. %+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  22. h = 0.5; % Modulation Index
  23. b=b/max(b); % normalized max(b) = 1
  24. Phase = pi*h*Ts*cumsum(b)'; % performs integration
  25. s = exp(j*(Phase)); % Complex Envelope:  signal = Real( s(t)e^jwt )
  26. %figure(no);
  27. %total_sp(s,M,1024);
  28. %no = no + 1;
  29. %figure(no);
  30. %subplot(1,1,1),plot(Phase);
  31. %title(' GMSK Phase Diagram  w/ Respected to Carrier')
  32. %xlabel(' T = 20 pts')
  33. %grid
  34. %no = no + 1;