我这有个初程序不知对你有没有用 >g+yw1nC
clear TF R8
dt=; %时间间隔 G)t_;iNL|
s= %信号数组 o<cg9
len=128; 1DLAfsLlj
F=2*pi*(0:len/2)/len/dt; Q8.=w
fs=fft(s,len); n@[_lNa4GD
p=fs.*conj(fs) Se{x-vn?p
p=p(1:len/2+1); _3~/Z{z8
plot(F,p) W|'7)ph
ylabel('power spectrum density ') @G,pM: t
xlabel('sequence ') ^hiIMqY_{`
title('03051171') D~P3~^
参数自已改吧