我这有个初程序不知对你有没有用 #JR$RH
clear %DKC/%
dt=; %时间间隔 er<_;"`1
s= %信号数组 d w'P =8d
len=128; n<ecVFft
F=2*pi*(0:len/2)/len/dt; ps*iE=D
fs=fft(s,len); HahA} Q
p=fs.*conj(fs) 2Hk21y\
p=p(1:len/2+1); v!AfIcEV
plot(F,p) rdH^"(
ylabel('power spectrum density ') 0Z{u;FI
xlabel('sequence ') N!<X%Ym
title('03051171') q NUd "%S
参数自已改吧