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

 Accepted Answer

0 votes

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

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!