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

📄 saleh.m

📁 功率放大器无记忆模型saleh的MATLAB程序
💻 M
字号:
% File: Salehs_model.m
% Software given here is to accompany the textbook: W.H. Tranter, 
% K.S. Shanmugan, T.S. Rappaport, and K.S. Kosbar, Principles of 
% Communication Systems Simulation with Wireless Applications, 
% Prentice Hall PTR, 2004.
%
function [y]=saleh(x)
% This function implements Saleh's model
% x is the complex input vector of size n;
% Back-off is in db; the input amplitude is scaled by
% c=10^(backoff/20);
% The maximum normalized input power should be less than 3 dB
% i.e., 20*log10(a*abs(x)) < 3 dB
%
%y = zeros(1,n)*(1.0+i*1.0);
a1 = 2.1587; b1 = 1.1517;             % model parameters
a2 = 4.033; b2 = 2.104;                 % model parameters
%c = 10^(backoff/20);                % backoff in dB
v=sqrt(-1);
    ain = abs(x);%输入信号的幅度
    thetain = angle(x);%输入信号的相位
    aout = a1*ain/(1+b1*ain^2);%输出的幅度
    thetapm = a2*ain^2/(1+b2*ain^2);%改变的相位
    thetaout = thetain+thetapm;%输出的相位
    y = aout*exp(v*thetaout);%输出的信号

% End of function file.

⌨️ 快捷键说明

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