我在用间接法计算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!