如何用matlab仿真调频和调相

来源:百度知道 编辑:UC知道 时间:2024/06/17 06:56:11
需要原程序。。

x=wavread('file.wav');%读取波形文件获得数据
x=x(1:1024);%取前1024点作为处理使用数据
fx=fft(x);
figure(1);
subplot(211);
plot(x);
subplot(212)
plot(abs(fx));
snr=.3;
x1=x+snr*randn(1,1024);%添加高斯白噪声
fx1=fft(x1);
figure(2);
subplot(211);
plot(x1)
subplot(212);
plot(abs(fx1))

买本书看吧