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

📄 ip_02_10.m

📁 数字通信第四版原书的例程
💻 M
字号:
% MATLAB script for Illustrative Problem 10, Chapter 2.
N=1000;	               			% number of samples
for i=1:2:N,
   [X1(i) X1(i+1)]=gngauss;
   [X2(i) X2(i+1)]=gngauss;
end;		       			% standard Gaussian input noise processes	
A=[1 -0.9];	       			% lowpass filter parameters
B=1;
Xc=filter(B,A,X1);       
Xs=filter(B,A,X2);
fc=1000/pi;	       			% carrier frequency	
for i=1:N,
   band_pass_process(i)=Xc(i)*cos(2*pi*fc*i)-Xs(i)*sin(2*pi*fc*i);
end;		       			% T=1 is assumed
% Determine the autocorrelation and the spectrum of the band-pass process
M=50;
bpp_autocorr=Rx_est(band_pass_process,M);
bpp_spectrum=fftshift(abs(fft(bpp_autocorr)));
% plotting commands follow

⌨️ 快捷键说明

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