⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 estimationerror.m

📁 这是一个关于完成QAM调制的Matlab示例程序
💻 M
字号:
function [rxMsg] = EstimationError(idealRxMsg,phaseError,dopplerError)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% function [rxMsg] = Channel(modMsg,gammaBar)
% This function models the receiver channel estimation errors.  As such, it will
% take idealRxMsg, and apply the various error effects.
%
% idealRxMsg = baseband received message before error simulation
% phaseError = amount of phase error to be applied, in radians.  Can
%              be any real value.
% dopplerError = doppler error per sample, in cycles per sample
% rxMsg = received message with estimation error effects applied
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

if ((phaseError == 0) & (dopplerError == 0))
    rxMsg = idealRxMsg;
else
	if (phaseError ~=0)
        rxMsg = idealRxMsg * exp(j*phaseError);
	end
	if (dopplerError ~=0)
        rxMsg = idealRxMsg.*exp(j*2*pi*dopplerError*((1:length(idealRxMsg))-1));
	end
end

return

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -