?? sigdemodulation.m
字號:
%This function brings the Modulated signal on the base-band
%Input Parameters:-
%ModulatedSig: Modulated Signal Received
%IsInphase: TRUE/FALSE to tell that ModulatedSig is Inphase or Quadrature
%CarrierPhase: Phase of the Carrier
%Output Parameters:-
%DeModulatedSig: Base Band Siganl Recovered
function DeModulatedSig = SigDemodulation(ModulatedSig, IsInphase, CarrierPhase)
%Paramters Initialization
Parameter;
TimeInd = CarrierPhase : 1/SamplingRate : CarrierPhase + SymbolsPerFrame * Ts - 1/SamplingRate;
if IsInphase == TRUE
Carrier = cos(2*pi*Fc*TimeInd);
else
Carrier = -1 .* sin(2*pi*Fc*TimeInd);
end
%Carrier gain is set to twice, b/c after demudulation the gain
%is set to half of the actual
DeModulatedSig = (2 .* Carrier) .* ModulatedSig;
%DeModulatedSig = (Carrier) .* ModulatedSig;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -