91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 79KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-08-19
  • 語言: 其他
  • 標簽: VSB調制??

資源簡介

VSB調制及解調仿真(包含三角函數及語音信號測試) 包括各模塊代碼講解,時域波形,頻譜分析以及信噪比增益曲線

資源截圖

代碼片段和文件信息

function?AM_simulation

%AM調制
fc=10;
f0=1;
A=2;
t0=5;%如果頻率為1,那至少要信號時長5個周期
snr=15;
dt=0.003;
fs=1/dt;
B=2;
df=0.0003;
t=0:dt:t0;
Lt=length(t);
snr_lin=10^(snr/10);
figure(1);
subplot(321)%調制信號波形
m1=cos(2*pi*f0*t);
plot(tm1(1:length(t)))
R=2*max(m1);
axis([0?t0?-R/2?R/2])
ylabel(‘基波信號‘);
subplot(322)%調制信號頻譜
[M1m1df1f]=T2F(m1dtdffs);
plot(ffftshift(abs(M1)));
axis([-2?2?0?3]);
xlabel(‘f‘);
ylabel(‘調制信號頻譜‘);
subplot(323)%載波波形
m2=cos(2*pi*fc*t);
plot(tm2(1:length(t)));
ylabel(‘載波信號波形‘);
axis([0?0.4?-R/2?R/2])
subplot(324);%載波頻譜
[M2m2df1f]=T2F(m2dtdffs);
plot(ffftshift(abs(M2)));
xlabel(‘f‘);
ylabel(‘載波信號頻譜‘);
axis([-20?20?0?3])
subplot(325)%已調波波形
m=(m1(1:length(t))+A).*m2(1:length(t));
plot(tm(1:length(t)));
R=2*max(m)+A;
axis([0?3?-R/2?R/2])
ylabel(‘已調信號波形‘);
subplot(326)
[Mmdf1f]=T2F(mdtdffs);
plot(ffftshift(abs(M)));
ylabel(‘已調信號頻譜‘);
xlabel(‘f‘);
axis([-15?15?0?3])
%將已調信號送入信道
signal_power=power_x(m(1:Lt));
noise_power=(signal_power*fs)/(snr_lin*2*B);
noise_std=sqrt(noise_power);
noise=noise_std*randn(1Lt);
figure(2);
subplot(321)%噪聲波形
plot(tnoise)
axis([0?5?-10?10]);
xlabel(‘t‘);
ylabel(‘噪聲信號‘);
subplot(322)%噪聲信號頻譜
[noisefnoisedf1f]=T2F(noisedtdffs);
plot(ffftshift(abs(noisef)));
axis([-50?50?0?1])
xlabel(‘f‘);
ylabel(‘噪聲信號頻譜‘);
subplot(323)%信道中的信號
sam=m(1:Lt)+noise(1:Lt);
plot(tsam);
axis([0?1?-R?R])
xlabel(‘t‘);
ylabel(‘信道中的信號‘);
subplot(324)%信道中信號的頻譜
[samfsamdf1f]=T2F(samdtdffs);
plot(ffftshift(abs(samf)));
axis([-17?17?0?6]);
ylabel(‘信道中信號的頻譜‘);
xlabel(‘f‘);
subplot(326)%帶通濾波器
f_start=fc-B;
f_cutoff=fc+B;
[H?f]=bp_f(length(sam)f_startf_cutoffdf1fsA);
plot(ffftshift(abs(H)));
axis([-15?15?0?2.5?])
xlabel(‘f‘);
ylabel(‘帶通濾波器‘);
%經過帶通濾波器
DEM=H.*samf;
[dem]=F2T(DEMfs);
figure(3)
subplot(321)
plot(tdem(1:Lt))
axis([0?3?-5?5])
xlabel(‘t‘)
ylabel(‘理想BPF輸出信號‘);
[demfdemdf1f]=T2F(dem(1:Lt)dtdffs);
subplot(322)%經過理想帶通濾波器后信號頻譜
plot(ffftshift(abs(demf)));
xlabel(‘f‘);
ylabel(‘理想BPF輸出信號頻譜‘);
axis([-15?15?0?5]);
%?%與本地載波相乘,混頻
%?subplot(323)%本地載波
%?plot(tm2(1:Lt));
%?axis([0?0.4?-2?2])
%?xlabel(‘t‘);
%?ylabel(‘本地載波‘);
%?subplot(324)%本地載波頻譜
%?plot(ffftshift(abs(M2)));
%?xlabel(‘f‘);
%?ylabel(‘載波信號頻譜‘);
%?axis([-20?20?0?3])
%?der=dem(1:Lt).*m2(1:Lt);%混頻
%?subplot(325);
%?plot(tder);
%?xlabel(‘t‘);
%?ylabel(‘混頻后的信號‘);
%?axis([0?3?-1?R]);
%?subplot(326)%混頻后信號頻譜
%?[derfderdf1f]=T2F(derdtdffs);
%?plot(ffftshift(abs(derf)))
%?xlabel(‘f‘);
%?ylabel(‘混頻后信號頻譜‘);
%?axis([-30?30?0?7])
%?%經過低通濾波器
%?figure(4)
%?[LPF?f]=lp_f(length(der)Bdf1fs2);
%?subplot(322)
%?plot(ffftshift(abs(LPF)))
%?xlabel(‘f‘)
%?ylabel(‘理想LPF‘)
%?axis([-3?3?0?3])
%?DM=LPF.*derf;
%?[dm]=F2T(DMfs);
%?subplot(323)
%?plot(tdm(1:Lt));
%?xlabel(‘t‘)
%?ylabel(‘LPF輸出信號‘)
%?subplot(324)
%?[dmfdmdf1f]=T2F(dm(1:Lt)dtdffs);
%?plot(ffftshift(dmf));
%?xlabel(‘f‘)
%?ylabel(‘LPF輸出信號頻譜‘)
%?ax

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????3669??2017-11-09?13:20??VSB_simulation\AM_simulation.m

?????文件????????292??2017-11-13?14:12??VSB_simulation\bp_f.m

?????文件????????665??2017-11-20?18:26??VSB_simulation\coherent_demodulation_power_transf.m

?????文件?????????42??2017-11-05?15:30??VSB_simulation\F2T.m

?????文件????????185??2017-11-05?15:29??VSB_simulation\fftseq.m

?????文件????????219??2017-11-13?14:12??VSB_simulation\lp_f.m

?????文件???????6493??2017-11-21?22:21??VSB_simulation\modulation_performance_comparing.m

?????文件?????128044??2017-11-18?09:48??VSB_simulation\output.wav

?????文件?????????48??2017-11-09?08:58??VSB_simulation\power_x.m

?????文件?????????96??2017-11-05?15:30??VSB_simulation\signalband.m

?????文件?????128078??2017-11-15?15:16??VSB_simulation\sound.wav

?????文件????????107??2017-11-05?17:08??VSB_simulation\T2F.m

?????文件???????4166??2017-11-17?12:44??VSB_simulation\VSB.m

?????文件????????340??2017-11-17?12:36??VSB_simulation\vsb_lpf.m

?????文件???????5713??2017-11-21?22:21??VSB_simulation\VSB_simulation.m

?????目錄??????????0??2017-11-20?19:52??VSB_simulation

-----------?---------??----------?-----??----

???????????????278157????????????????????16


評論

共有 條評論

相關資源