estimate_direct_channel_SNR.m
上传用户:cjx922
上传日期:2017-12-13
资源大小:205k
文件大小:0k
源码类别:

通讯编程

开发平台:

Matlab

  1. function SNR_direct=estimate_direct_channel_SNR(channel,modulation_type,Ps);
  2. %直传信道的信噪比估计
  3. global signal;
  4. switch modulation_type
  5.     case 'BPSK'
  6.         SNR_direct=10^(channel.noise.SNR/10)*ones(size(signal.symbol_sequence)).*channel.attenuation.h_mag.^2.*Ps;
  7.     case 'QPSK'
  8.         SNR_direct=10^(channel.noise.SNR/10)*ones(size(signal.symbol_sequence)).*channel.attenuation.h_mag.^2.*Ps;
  9.         SNR_direct=[SNR_direct,SNR_direct];
  10. end