我这有个初程序不知对你有没有用 'Ji+c
clear YdOUv|tZC
dt=; %时间间隔 gbGTG(:1S
s= %信号数组 xPQL?.
len=128; I-:`cON=G
F=2*pi*(0:len/2)/len/dt; d79N-O-
fs=fft(s,len); =HE
m)
p=fs.*conj(fs) =7jEz+w#
p=p(1:len/2+1); 9N
Le&o
plot(F,p) -J$g(sikt
ylabel('power spectrum density ') f'{>AKi=C
xlabel('sequence ') [&VxaJ("3
title('03051171') pCt}66k}
参数自已改吧