📄 berrayleighdoppler.m
字号:
function [ber] = BerRayleighDoppler(gammaB,fDT)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This is just a utility function to compute the expected BER
% of a signal in Rayleigh fading with doppler error in the receiver
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
MIN_FDT = 1/10000; % Not sure if this is a reasonable value. Using for now.
if (fDT < MIN_FDT)
% Doppler is essentially zero. Just use standard Rayleigh fading equation
ber = 0.5*(1-sqrt(gammaB/(1+gammaB)));
else
ber = 0.5 + (1/(8*pi*fDT))*(asin(sqrt(2*gammaB)*cos((pi/4)+2*pi*fDT)/sqrt(1+2*gammaB)) - ...
asin(sqrt(2*gammaB)*cos((pi/4)-2*pi*fDT)/sqrt(1+2*gammaB)));
end
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -