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

📄 ip_06_11.m

📁 数字通信第四版原书的例程
💻 M
字号:
% MATLAB script for Illustrative Problem 11, Chapter 6.
echo on
T=1;
for n=-2:2,
  for k=-2:2,
    temp=0;
    for i=-2:2,
      temp=temp+(1/(1+(n-i)^2))*(1/(1+(k-i)^2));
    end;
    X(k+3,n+3)=temp;
  end;
end;
N0=0.01;		    	  	% assuming that N0=0.01
Ry=X+(N0/2)*eye(5);
Riy=[1/5 1/2 1 1/2 1/5].';        
c_opt=inv(Ry)*Riy;		  	% optimal tap coefficients
% find the equalized pulse...
t=-3:1/2:3;
x=1./(1+(2*t/T).^2);		  	% sampled pulse
equalized_pulse=conv(x,c_opt);    
% decimate the pulse to get the samples at the symbol rate
decimated_equalized_pulse=equalized_pulse(1:2:length(equalized_pulse));
% plotting command follows

⌨️ 快捷键说明

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