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

📄 rapps_model.m

📁 基于OFDM的无线宽带系统仿真It contains mainly two parts, i.e. link-level simulator and system-level simulator.
💻 M
字号:
function x_out=Rapps_model(x_in,Flg)
%%%%%%%%%%%%%%%%% Generate amplifier model, using p=3 %%%%%%%%%%%%%%%%
% x_in : signal input, can be complex signal
% Flg  : '' implies exponent value of 2 is used in the SSPA model, if 'Ideal' is
% specified , the exponent value of 1e3 is used in the SSPA high power amplifier
% model
% x_out: output signal include phase

%a=0:0.2:2;
switch(Flg)
    case 'Ideal'
        p=1e3;
    otherwise 
        p=2;%2.5;
end
% RealPin=real(P_in); % Seperating real part of the signal.
% AmpR=(RealPin./(((1+RealPin.^(2*p))).^(1/(2*p)))); % Amplification of the real part according to Rapps model.
% ImgPin=imag(P_in);% Seperating imaginary part of the signal.
% AmpI=(ImgPin./(((1+ImgPin.^(2*p))).^(1/(2*p)))); % Amplification of the imaginary part according to Rapps model.
%  
% P_amp=AmpR+i*AmpI;%Adding up this two signal to get back the amlified signal




phi=atan2(imag(x_in),real(x_in));
Ampli_x_in=abs(x_in);
x_out=exp(j*phi).*(Ampli_x_in./(((1+Ampli_x_in.^(2*p))).^(1/(2*p)))); % Amplification according to Rapps model.

⌨️ 快捷键说明

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