ip_06_10.m
上传用户:loeagle
上传日期:2013-03-02
资源大小:1236k
文件大小:1k
源码类别:

通讯编程文档

开发平台:

Matlab

  1. % MATLAB script for Illustrative Problem 6.10.
  2. echo on
  3. T=1;
  4. Fs=2/T;
  5. Ts=1/Fs;
  6. c_opt=[-2.2 4.9 -3 4.9 -2.2];
  7. t=-5*T:T/2:5*T;
  8. x=1./(1+((2/T)*t).^2);         % sampled pulse
  9. equalized_x=filter(c_opt,1,[x 0 0]); % since there will be a delay of two samples at the output
  10. % to take care of the delay
  11. equalized_x=equalized_x(3:length(equalized_x));  
  12. % Now, let us downsample the equalizer output.
  13. for i=1:2:length(equalized_x),
  14.   downsampled_equalizer_output((i+1)/2)=equalized_x(i);
  15.   echo off;
  16. end;
  17. echo on ;
  18. % Plotting commands follow.