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

📄 ip_07_10.m

📁 contemporarycommunicatonsystem-using MATLAB经典书目源程序!
💻 M
字号:
% MATLAB script for Illustrative Problem 10, Chapter 7.echo onalpha=0.4;T=1/4800;t=[-3*T:1.001*T/100:3*T];x=sinc(t./T).*(cos(pi*alpha*t./T)./(1-4*alpha^2*t.^2/T^2));pause % Press any key to see a plot of x(t).plot(t,x)y=xcorr(x);ty=[t-3*T,t(2:length(t))+3*T];pause % Press any key to see a plot of the autocorrelation of x(t).plot(ty,y);d=60;					% Early and late advance and delayee=0.01;				% Precisione=1;					% Step sizen=700;					% The incorrect sampling timewhile abs(abs(y(n+d))-abs(y(n-d)))>=ee  if abs(y(n+d))-abs(y(n-d))>0    n=n+e;  elseif abs(y(n+d))-abs(y(n-d))<0    n=n-e;  end  echo off ;endecho on ;pause % Press any key to see the corrected sampling timenn=500;					% Another incorrect sampling timewhile abs(abs(y(n+d))-abs(y(n-d)))>=ee  if abs(y(n+d))-abs(y(n-d))>0    n=n+e;  elseif abs(y(n+d))-abs(y(n-d))<0    n=n-e;  end  echo off ;endecho on ;pause % Press any key to see the corrected sampling timen

⌨️ 快捷键说明

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