离散载波上调制/解调的MATLAB仿真

时间:2018-11-26 12:23:44

标签: signals carrier

在实验室工作,碰到一个我不知道如何将采样波形调制到离散时间正弦载波上,然后使用三个通道执行下一步的第四点(链接的第4.1节第3和第4部分) )。请任何帮助将不胜感激。到目前为止,这是我对4.1的前两个小节所拥有的。lab steps in image

%read audiofile
[mn,fs] = audioread('xaudio.wav');
fc = 11000;
dt = 1/fs;
t=0:dt:(length(mn)*dt)-dt;
plot(t,mn);

%resample at 5k to get audio file below carrier freq.
[P,Q] = rat(5000/fs);
abs(P/Q*fs-5000);
xnew=resample(mn,P,Q);
P44100 = audioplayer(mn,44100);
P5000 = audioplayer(xnew,5000);
%play(P44100)
%play(P5000)
figure
dt_new=1/5000;
tnew=0:dt_new:(length(xnew)*dt_new)-dt_new;
plot(tnew,xnew);

0 个答案:

没有答案