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

📄 c12_example1.m

📁 非线性通信系统的仿真
💻 M
字号:
% File: c12_example1.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.
%
x = 0.1:0.1:2;						% input power vector
n = length(x);						% length of x
backoff = 0.0;						% backoff
y = salehs_model(x,backoff,n);	    % nonlinearity model
subplot(2,1,1)
pin = 10*log10(abs(x));				% input power in dB
pout = 10*log10(abs(y));			% output power in dB
plot(pin,pout); grid;
xlabel('Input power - dB')
ylabel('Output power - dB')
subplot(2,1,2)
plot(pin,(180/pi)*unwrap(angle(y))); grid;
xlabel('Input power - dB')
ylabel('Phase shift - degrees')
% End of script file.

⌨️ 快捷键说明

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