我在用间接法计算PSD的时候为何,输出报错啊?。

我的代码如下:
Fs=100000;
xn=IVtSampling3PMOSVGS1;
nfft=1024;
cxn=xcorr(xn,'unbiased');
CXk=fft(cxn,nfft);
Pxx=abs(CXk);
index=0:round(nfft/2-1);
k=index*Fs/nfft;
plot_Pxx=10*log10(Pxx(index+1));
plot(k,Pxx);

 采纳的回答

0 个投票

plot(k,plot_Pxx)才对,Pxx和k长度不一样

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 参数化频谱估计 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!