matlab中的频率解调

时间:2013-12-11 16:53:50

标签: matlab frequency telecommunication modulation

如何在matlab中进行频率解调

我已经完成了频率调制,但我无法进行频率解调 这是matlab代码

clear all 
close all 
recorder = audiorecorder(44100,16,1);
recordblocking(recorder,2);
xtmessage = getaudiodata(recorder);

time=(1/44100)*length(xtmessage);
t=linspace(0,time,length(xtmessage));

xt=xtmessage/max(abs(xtmessage)); %normalization
Ac=2; %amplitude
fc=10000; %carrier frequency
Df= 6000; % frequency deviation

variant = 0;
for n=1:88200;
    variant = variant + xt(n);
    xct(n) = Ac*cos(2*pi*fc*n/44100 + 2*pi*Df*variant/88200);
end

Xft = fft(xct);
Xft = fftshift(Xft);
plot(abs(Xft))

1 个答案:

答案 0 :(得分:0)

您可以使用fmmod()和fmdemod()。 This是fmdemod函数文档的链接