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

📄 sigmodulation.m

📁 APSK仿真程序
💻 M
字号:
%This function modulate the carrier according to the input signal

%Input Parameters:-
%BaseBandSignal: Signal to be modulated on the carrier
%IsInphase: TRUE/FALSE to tell that the BaseBandSignal will be
%           modulated on the Inphase or the Quadrature carrier.
%CarrierPhase: Phase of the Carrier

%Output Parameters:-
%ModulatedSig: Modulated Siganl for the input BaseBandSignal

function ModulatedSig = SigModulation(BaseBandSignal, 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 = sin(2*pi*Fc*TimeInd);
end

ModulatedSig = Carrier .* BaseBandSignal;

⌨️ 快捷键说明

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