我这有个初程序不知对你有没有用 i"=lxqWeaV
clear c-v-UO%
dt=; %时间间隔 3Fxr=
s= %信号数组 mYj)![
len=128; ##}7cFX
F=2*pi*(0:len/2)/len/dt; ->X>h_k.Y
fs=fft(s,len); ?z <-Ww
p=fs.*conj(fs) Y%?*Lj|
p=p(1:len/2+1); Pjn{3/*wi
plot(F,p) jEwt1S V
ylabel('power spectrum density ')
I!Z"X&
xlabel('sequence ') 9UVT]acq
title('03051171') [[w |
参数自已改吧