MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MATLAB论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=6)
-   -   [MATLAB信号处理] 高斯噪声的功率谱分析 (https://www.labfans.com/bbs/showthread.php?t=18819)

那年下雪 2013-04-27 16:50

高斯噪声的功率谱分析
 
为什么我通过相关和fft变换来仿真高斯白噪声功率谱不是一条近似直线,相关函数仿真是冲击响应,且冲击值为1,但功率谱不是波动在1附近,
请指教 万分感激
clear all;
fs=1000;
nfft=1024;
idx=0:round(nfft/2-1);
k=idx*fs/nfft;
t=0:1/fs:1;
x1=randn(1,length(t));
[rx1 lag1]=xcorr(x1,'unbiased');%求自相关函数
fx1=fft(rx1,nfft);%求功率谱密度;
我还利用多次循环也不可以?谢谢了


所有时间均为北京时间。现在的时间是 13:56

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.