《通信仿真实验报告_1.pdf》由会员分享,可在线阅读,更多相关《通信仿真实验报告_1.pdf(53页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、1.2.3.4.1Matlabx(n+1)=24LY(/7)+1323 mod(5000)x(0)4m(m0),a(0sac(0cm),(Seed)X(0 X Ji)disp C Caught m a loop):else Ihe period isnunEstr(n,15)J.disp(t ext).end Enter seed 1 Ihe period is5000 2MatlabpdfpdfpdfPx W=exp(-0 z H(x)a5;42 M /zV(r)=.R HUmuu“3)=1.r )*i(.r),=.r V 0 sohif ii“:1 rxp(5)y.X-.Ind y)ln(
2、i/)x 3Matlabpdf0-0.2 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 0.8 pl=n cfpdf(x,5,20,10);p=fpdf(x,5,20);4X(n)N10000 1 0.01soY(n)SY(f)=(1)(2)Y(n)X0 0;:X(0)N=1000;rh=0.9;X=zeros(l,N);X w=rand(l,N)-l/2;w:(-172,1/2)XNX,X(2),.,X(N)g MATLAB#J(PAM)12bit0.2 0.4 0.6 0.8 1 2.1 PAM co(2?r/j)2:PAM PAM 1.40bit2.3.10 10 0
3、5 10 15 SNR in dB 10 M 101 1:MPAMI theo.err_prb(i)=(2*(M-l)/M)*Qfunct(sqrt(6*log2(M)/(M2-l)SNR_per_bit);4.FIR,(1)1.28MHz 4(2)0.22,0-60 0 65 N_T8;2*NJ*Fs/Fc+l R0.22 Fc=1.28e+6;Tc=1.0e-6/1.2&%Num,Den=rcosine(Fc/Fs,sqrt,R);N u m=rcosf i r(R,N_T,4,Tcf*sq rt);H,w=freqz(Num,l,1000,whole);H=(H(l:l:501);w=(
4、w(l:l:501);Mag=abs(H);L 1 .r.I .|I n|I 1 -20-30-40 0.2 0.4 0.6 0.8 1 Fs 4*Fc;4 db=20*logl0(Mag)/max(Mag);pha=a ngle(H);plot(w/pi,db);grid;axis(0 1-60 l);xlabelC0-);ylabel(RRC (dB);(1)H,w=freqz(BAN)(2)Hrw=freqz(BAN/whole)(1)BAH0piNN,wNN512(2)0piNfreqz()abs()angleQplot(),(3)(-1.1)2 -j-10 12 14 16 1.MA
5、TLAB(BPSK)12bit 3.2 Monte Carlo 3.2.1MPSK i r O I N-n-r -1-*-i-*-I|I|I I I I|1 .J.:.I I 0-!1 I I I I I I I I I I V I I -|-1-i-*-1-1-I I I I I I|I I I -2 .:.b._ iiii _ 0 200 400 600 800 1000 1200 2.max z-um n 3.SNRindB qpsk=zeros(l,N);4.QPSKMATLAB(1)(0sll=-j;sl0=-l;s00=j;s01=l;QPSK 4 N=10000;2N signa
6、l=rand(l,2*N);(3)10 QPSK 10 10-2 103 104 10 2 4 6 SNR in dB 8 10 DTFT 1-1 Wave of signal 1 1 1 L IR 4,r I lull 1 1 1 1 1 1 1 1-3Wave of signal 1 2 _ i _ i _ i _ i _ i _ i _ 0 10 20 30 40 50 60 70 Disaete bme n Wave of signal 1 J 1 1 1 11 1 I h j)1-1 FF l 1 1 1 I I 2 _:_ i _;_ i _;_:_ 0 10 20 30 40 5
7、0 60 70 Discrete time n Digital freque ncy Wave of signal 1 1-il 1 1 1 T-1 1 ,ll L 1 1 4 1 1 I 1)1 I.,1 1 0 10 20 30 40 50 60 70 Discrete time n Digital freque ncy 2-1 2-1 2-235 DFT spectrum DFT spectrum 3-1DFT spectrum wth 64 zeros padded Normalized digital frequency Normalized digital frequency%Ze
8、ro padding DFT v=2;dft_vn fftshift(fft(vn,v*N);figure(3);stemvN/2MN/2J/N/2),abs(dft_vn),T);axis(-l 1 0 35);title(DFT spectrum with 64 zeros padded1);xlabelCNormalized digital frequency);%Zero padding DFT v=4;dft_v n=fftshift(fft(vnrv*N);figure(4);stemN/2:N/2l/(bN/2),abs(dft_vn),T);title(DFT spectrum
9、 with 3*64 zeros padded*);xlabelCNormalized digital frequency);axis(-l 1 0 35);%v=8;dft.vn=fftshift(fft(vn/v*N);figure(5);stemN/2:N/2l/(bN/2),abs(dft_vn),T);title(DFT spectrum with 7*64 zeros padded*);xlabeNormalized digital frequency);axis(-l 1 0 35);4-1:10 4-1:10 r o-10-L-*0 500 1000 10-10-1-0 500
10、 1000 10 o VVMWV 10 10r o-101-!0 500 1000 10r-iol-0 500 1000 10r-iol-0 500 1000 10r 0 MK/WW-iol-J 500 1000 10-0 500 1000-10-1 -0 500 1000 4 0 500 1000 2 0 500 1000 4-2 R 0.50 500 1000 0 500 1000 5 5 0-5 60 500 1000 0 500 1000-5 0 500 1000 5r 50 500 1000 4-2 R=0.5xio4 0 500 1000 1 2 0 500 1000 0 500
11、1000 500 1000 0 A0 o o o o(dBi 2 -400 200 0 200 Doppler shift(Hz)400 600 2R0.5R0.5 R=0.5Timets)0 3:3-1 303-1 30 -60-600-400-200 0 200 Doppler shift(Hz)400 600 Normalized frquency response(dBj I I 2 5 i cn o gjHtjcto&ccrrpJax orrvolcpo Pnc(rdJ o S 3-1453-145 3-1 450 -600-400-200 0 200 Doppler shift(H
12、z)400 600 3-l 903-l 90 3-1 90o-10-20-30-40-50-60002 0.04 OS Time l ooe 01 Timo-400-200 0 200 400 600 Doppler shift(Hz)3-1 180 Timers)Tre($)3-1 180 3-1 180 0 -45 5600 4-lN=12 400-200 0 200 Doppler shift(Hz)400 600 600-200 0 -200 L-r-.-800-600-400-200 0 200(m)-600 02 04 06 m(S)08 1 0 0.2 0.4 0.6 0.8 I
13、-10 4-lN=256 0-1000 500 0 500 1000 Doppler shift(Hz)os oot osi ooc 052 ooc osc OOfr OSV XJd NS(ZH)ii|S3|ddoa 0001-00S 0 0OS 0001-0 80(s)90 P0 9C Z“L GO 0 d 00S 0001 0Z-l=NUWin-S(S)Bjpl 90 90 E 30 0 05-Qtr 0-oc-or o 01 M)S73 00 009 008;“003-0 003 OOP 009 400 360 k 300:0 150 k 100 k 50 k 64N“2 61N=64 6 J N=256 7-17-1N=12 74N=256 7000 6000 5000 4000 3000 2000 1000 200 05 74N=64 PSD