资源描述:
《通信原理matlab仿真实验》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ïඹၐसñԅMATLABყHPU੦થԸᄥຂහ1.AMԸᄥڶёòϏġสᑖؑਧAMᐢ䈳ؑਧ-ᛵߥ12200-2-201230123t(s)t(s)สᑖؑਧAMᐢ䈳ؑਧ-ᛵߥ22200-2-201230123t(s)t(s)สᑖؑਧAMᐢ䈳ؑਧ-ᛵߥ32200-2-201230123t(s)t(s)òӝ৲ġclearall;clc;%ಓюۜӛlower=0;upper=3;step=(upper-lower)/1e3;%ನϰُྂt=lower:step:upper;fm=1;%ӛۜԅᆫغmt=cos(2*pi*fm*t);%ࠩAMԸᄥ-ெࣣ1A=1.5;fc=10;%ၻϏ
2、ᄯHPUs_AM=(A+mt).*cos(2*pi*fc*t);figure;subplot(3,2,1);plot(t,mt,'b-');holdon;plot(t,A*ones(size(t)),'r-');xlabel('t(s)');title('ۜӛ');axis([lower,upper,-2,2]);gridon;subplot(3,2,2);plot(t,s_AM,'b-');holdon;plot(t,A+mt,'r:');xlabel('t(s)');title('AMྸԸۜ-ெࣣ1');axis([lower,upper,-3,3]);gridon;%
3、ࠩAMԸᄥ-ெࣣ2A=1;s_AM=(A+mt).*cos(2*pi*fc*t);subplot(3,2,3);plot(t,mt,'b-');holdon;plot(t,A*ones(size(t)),'r-');xlabel('t(s)');title('ۜӛ');axis([lower,upper,-2,2]);gridon;subplot(3,2,4);plot(t,s_AM,'b-');holdon;plot(t,A+mt,'r:');xlabel('t(s)');title('AMྸԸۜ-ெࣣ2');axis([lower,upper,-3,3]);gridon;%
4、ࠩAMԸᄥ-ெࣣ3A=0.5;s_AM=(A+mt).*cos(2*pi*fc*t);subplot(3,2,5);plot(t,mt,'b-');holdon;plot(t,A*ones(size(t)),'r-');xlabel('t(s)');title('ۜӛ');axis([lower,upper,-2,2]);gridon;subplot(3,2,6);plot(t,s_AM,'b-');holdon;plot(t,abs(A+mt),'r:');xlabel('t(s)');title('AMྸԸۜ-ெࣣ3');axis([lower,upper,-3,3]);g
5、ridon;2.AMྸԸۜԅٟୖူອؤࠓԸòϏġAMᐢ䈳ؑਧ৺ަव㔌50-500.511.522.533.544.55t(s)HPUAMᐢ䈳ؑਧⲴ࣏⦷䉡10-20-15-10-505101520f(Hz)ᒢ䀓䈳ಘⲴ䗃ࠪ10-100.511.522.533.544.55t(s)ᒢ䀓䈳ਾؑਧสᑖؑਧòӝ৲ġclearall;clc;%ಓюۜӛdt=0.001;%ನϰُྂT=5;%ۜನЩt=0:dt:T;fm=1;%ӛۜԅᆫغmt=cos(2*pi*fm*t);%ۜӛ%AMԸᄥA=1.2;fc=10;%ၻϏᄯs_am=(A+mt).*cos(2*pi*f
6、c*t);%ಓюႮӛغഎ͂ႎಒ%B=2*fm;%ӛඹϏ୶ӛࣚ%N0=0.01;%͂ႎӦΨٟୖੁէ%noise=noise_nb(fc,B,N0,t);%s_am=s_am+noise;figure;subplot(3,1,1);plot(t,s_am,'b-');holdon;plot(t,A+mt,'r:');xlabel('t(s)');title('AMྸԸۜރͧ৮');%AMྸԸۜԅٟୖ[f,sf]=T2F(t,s_am);psf=(abs(sf).^2)/T;subplot(3,1,2);plot(f,psf,'b-');axis([-2*fc,2*fc,0,ma
7、x(psf)]);xlabel('f(Hz)');title('AMྸԸۜԅٟୖ');%AMອؤࠓԸrt=s_am.*cos(2*pi*fc*t);rt=rt-mean(rt);[f,rf]=T2F(t,rt);[t,rt]=lpf(f,rf,2*fm);subplot(3,1,3);plot(t,rt,'b-');holdon;plot(t,mt/2,'r:');legend('ອۜӛಳၐ','ۜ܊Ըࠓؤ');xlabel('t(s)');tit