我这有个初程序不知对你有没有用 pi?U|&.1z
clear VUGVIy.
dt=; %时间间隔 5>[j^g+@
s= %信号数组 >a1ovKF
len=128; AT,?dxP J
F=2*pi*(0:len/2)/len/dt; h3:dO|Z
fs=fft(s,len); !Pb39[f
p=fs.*conj(fs) 'D;'Pr]
p=p(1:len/2+1);
y-CVyl
plot(F,p) %+Khj@aX
ylabel('power spectrum density ') 4U1"F 7'
xlabel('sequence ') <ba+7CK]w
title('03051171') u<{uUui}$v
参数自已改吧