我这有个初程序不知对你有没有用 f.6>6%l
clear f?5>V
dt=; %时间间隔 /QXUD.(
8
s= %信号数组 bmG`:_
len=128; h^3gYL7O6
F=2*pi*(0:len/2)/len/dt; dtTn]}J
fs=fft(s,len); zdYH9d>D
p=fs.*conj(fs) F^%w%E\
p=p(1:len/2+1); S=qh7ML
plot(F,p) EX]+e
ylabel('power spectrum density ') a'VQegP(f\
xlabel('sequence ') EFX2>&mWo8
title('03051171') ZM<6yj"f
参数自已改吧