




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、AM調(diào)制與解調(diào)100% AM figure(Name,NumberTitle,off) a0=1;f0=2000;fc=20000;fs=1000000; t=1:0.000001:4; am1=0*cos(2*pi*f0*t); % am=a0+am1; t1=cos(2*pi*fc*t); % s_am=am.*t1; AM1=fft(am1); T1=fft(t1); S_AM=fft(s_am); f=(0:3000000)*fs/3000001-fs/2; subplot(3,2,1); plot(t(1:1000),am1(1:1000); title(); subplot(3,2
2、,2); plot(f,fftshift(abs(AM1); title(); subplot(3,2,3); plot(t(1:1000),t1(1:1000); title(); subplot(3,2,4); plot(f,fftshift(abs(T1); title(); subplot(3,2,5); plot(t(1:1000),s_am(1:1000); title(); subplot(3,2,6); plot(f,fftshift(abs(S_AM); title(); % figure(Name,NumberTitle,off); snr=5; y=awgn(s_am,s
3、nr); fcuts=16000 17500 22500 24000; mags=0 1 0; devs=0.05 0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts,mags,devs,fs); hh=fir1(n,Wn,ftype,kaiser(n+1,beta),noscale); H,f=freqz(hh,1,1024,fs); st_p=fftfilt(hh,y); Q=fft(st_p);Y=fft(y); f=(0:3000000)*fs/3000001-fs/2; subplot(2,2,1);plot(t(1500001:1501000),y
4、(1500001:1501000);title(); subplot(2,2,2);plot(f,fftshift(abs(Y);title(); subplot(2,2,3);plot(t(1500001:1501000),st_p(1500001:1501000);title(); subplot(2,2,4); plot(f,fftshift(abs(Q);title(); % figure(Name,NumberTitle,off); ss_am=st_p.*t1; SS_AM=fft(ss_am) f=(0:3000000)*fs/3000001-fs/2; subplot(2,1,
5、1);plot(t(1500001:1503000),ss_am(1500001:1503000);title(); subplot(2,1,2); plot(f,fftshift(abs(SS_AM);title(); fcuts1=2500,30000; mags1=1 0; devs1=0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts1,mags1,devs1,fs); hh1=fir1(n,Wn,ftype,kaiser(n+1,beta),noscale); H,f=freqz(hh1,1,1024,fs); m0=fftfilt(hh1,ss_a
6、m); M0=fft(m0); f=(0:3000000)*fs/3000001-fs/2; figure subplot(2,1,1);plot(t(1500001:1501000),m0(1500001:1501000);title(); subplot(2,1,2); plot(f,fftshift(abs(M0);title(); 50% AM figure(Name,NumberTitle,off) a0=2;f0=2000;fc=20000;fs=1000000; t=1:0.000001:4; am1=0*cos(2*pi*f0*t); % am=a0+am1; t1=cos(2
7、*pi*fc*t); % s_am=am.*t1; AM1=fft(am1); T1=fft(t1); S_AM=fft(s_am); f=(0:3000000)*fs/3000001-fs/2; subplot(3,2,1); plot(t(1:1000),am1(1:1000); title(); subplot(3,2,2); plot(f,fftshift(abs(AM1); title(); subplot(3,2,3); plot(t(1:1000),t1(1:1000); title(); subplot(3,2,4); plot(f,fftshift(abs(T1); titl
8、e(); subplot(3,2,5); plot(t(1:1000),s_am(1:1000); title(); subplot(3,2,6); plot(f,fftshift(abs(S_AM); title(); % figure(Name,NumberTitle,off); snr=5; y=awgn(s_am,snr); fcuts=16000 17500 22500 24000; mags=0 1 0; devs=0.05 0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts,mags,devs,fs); hh=fir1(n,Wn,ftype,ka
9、iser(n+1,beta),noscale); H,f=freqz(hh,1,1024,fs); st_p=fftfilt(hh,y); Q=fft(st_p);Y=fft(y); f=(0:3000000)*fs/3000001-fs/2; subplot(2,2,1);plot(t(1500001:1501000),y(1500001:1501000);title(); subplot(2,2,2);plot(f,fftshift(abs(Y);title(); subplot(2,2,3);plot(t(1500001:1501000),st_p(1500001:1501000);ti
10、tle(); subplot(2,2,4); plot(f,fftshift(abs(Q);title(); % figure(Name,NumberTitle,off); ss_am=st_p.*t1; SS_AM=fft(ss_am) f=(0:3000000)*fs/3000001-fs/2; subplot(2,1,1);plot(t(1500001:1503000),ss_am(1500001:1503000);title(); subplot(2,1,2); plot(f,fftshift(abs(SS_AM);title(); fcuts1=2500,30000; mags1=1
11、 0; devs1=0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts1,mags1,devs1,fs); hh1=fir1(n,Wn,ftype,kaiser(n+1,beta),noscale); H,f=freqz(hh1,1,1024,fs); m0=fftfilt(hh1,ss_am); M0=fft(m0); f=(0:3000000)*fs/3000001-fs/2; figure subplot(2,1,1);plot(t(1500001:1501000),m0(1500001:1501000);title(); subplot(2,1,2);
12、 plot(f,fftshift(abs(M0);title(); 0% AM figure(Name,NumberTitle,off) a0=10100;f0=2000;fc=20000;fs=1000000; t=1:0.000001:4; am1=0*cos(2*pi*f0*t); % am=a0+am1; t1=cos(2*pi*fc*t); % s_am=am.*t1; AM1=fft(am1); T1=fft(t1); S_AM=fft(s_am); f=(0:3000000)*fs/3000001-fs/2; subplot(3,2,1); plot(t(1:1000),am1(
13、1:1000); title(); subplot(3,2,2); plot(f,fftshift(abs(AM1); title(); subplot(3,2,3); plot(t(1:1000),t1(1:1000); title(); subplot(3,2,4); plot(f,fftshift(abs(T1); title(); subplot(3,2,5); plot(t(1:1000),s_am(1:1000); title(); subplot(3,2,6); plot(f,fftshift(abs(S_AM); title(); % figure(Name,NumberTit
14、le,off); snr=5; y=awgn(s_am,snr); fcuts=16000 17500 22500 24000; mags=0 1 0; devs=0.05 0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts,mags,devs,fs); hh=fir1(n,Wn,ftype,kaiser(n+1,beta),noscale); H,f=freqz(hh,1,1024,fs); st_p=fftfilt(hh,y); Q=fft(st_p);Y=fft(y); f=(0:3000000)*fs/3000001-fs/2; subplot(2,2
15、,1);plot(t(1500001:1501000),y(1500001:1501000);title(); subplot(2,2,2);plot(f,fftshift(abs(Y);title(); subplot(2,2,3);plot(t(1500001:1501000),st_p(1500001:1501000);title(); subplot(2,2,4); plot(f,fftshift(abs(Q);title(); % figure(Name,NumberTitle,off); ss_am=st_p.*t1; SS_AM=fft(ss_am) f=(0:3000000)*
16、fs/3000001-fs/2; subplot(2,1,1);plot(t(1500001:1503000),ss_am(1500001:1503000);title(); subplot(2,1,2); plot(f,fftshift(abs(SS_AM);title(); fcuts1=2500,30000; mags1=1 0; devs1=0.01 0.05; n,Wn,beta,ftype=kaiserord(fcuts1,mags1,devs1,fs); hh1=fir1(n,Wn,ftype,kaiser(n+1,beta),noscale); H,f=freqz(hh1,1,
17、1024,fs); m0=fftfilt(hh1,ss_am); M0=fft(m0); f=(0:3000000)*fs/3000001-fs/2; figure subplot(2,1,1);plot(t(1500001:1501000),m0(1500001:1501000);title(); subplot(2,1,2); plot(f,fftshift(abs(M0);title(); FM調(diào)制與解調(diào)%FM figure(Name,FM)f0=2000; fc=20000; fs=1000000; Am=1; kf=0.5; Tc=8; Ta=0.001; dt=0.000001;
18、t=0:1/fs:3; f=(0:length(t)-1)*fs/(length(t)-fs/2; fm0=cos(2*pi*f0*t); mt=fm0; % w1=0;w2=0; for m=1:length(t) w1=mt(m)+w2; w2=mt(m)+w1; fi(m)=w1/(2*fs); end fi=fi*2*pi/max(abs(fi); I=cos(kf*fi); Q=sin(kf*fi); y1=Am*cos(2*pi*fc*t).*I-Am*sin(2*pi*fc*t).*Q; subplot(2,1,1); plot(t,y1);title() axis(1e-3 4e-3 -2 2); Y1=fft(y1); subplot(2,1,2);plot(f,fftshift(abs(Y1)/1e6); title() %axis(-4e4 4e4 0 1); figure(Name,FM) y1o=awgn(y1,40);subplot(3,1,1);plot(t,y1o); title() %axis(1e-3 4e-3 -2 2); %KSband=2*(3+1)*f0;fcutsb=fc-KSband-2000 fc-KSband fc+KSband fc+KSband+2000; %magsb=0 1 0;devsb=0.0
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年度新型養(yǎng)老服務機構(gòu)代繳社保服務協(xié)議范本
- 2025年新能源發(fā)電設備定期檢查與維護合同
- 2025年度智能車庫租賃及車位租賃與停車資源共享協(xié)議
- 2025年度土地承包經(jīng)營權流轉(zhuǎn)糾紛調(diào)解合同模板
- 2025年茶葉種植基地生態(tài)保護與修復承包協(xié)議
- 2025年度離婚協(xié)議書格式規(guī)范與編制要求
- 秘書工作計劃對企業(yè)目標的支持
- 班級跨學科活動的實施路徑計劃
- 社團活動資源共享方案計劃
- 醫(yī)院文化建設增效方案計劃
- 丙烯-危險化學品安全周知卡
- 2024-2030年中國免疫檢查點抑制劑行業(yè)市場研究分析及投資機會預測報告
- 《太常引·建康中秋夜為呂叔潛賦》示范課教學設計(部編人教版九年級語文下冊)
- 學前兒童角色游戲的組織與指導(學前兒童游戲課件)
- 《配電網(wǎng)設施可靠性評價指標導則》
- 2024年國家電網(wǎng)招聘之通信類題庫附參考答案(考試直接用)
- 浙教版一年級下冊勞動全冊教學課件
- 2024年臺州市宏泰供電服務有限公司招聘筆試參考題庫附帶答案詳解
- ## 外事領域意識形態(tài)工作預案
- CJJ 169-2012城鎮(zhèn)道路路面設計規(guī)范
- 廚房安全知識課件
評論
0/150
提交評論