我这有个初程序不知对你有没有用 OS[
s Qo5
clear Q
8]X
dt=; %时间间隔 30h[&Oc
s= %信号数组 +wQ5m8E
len=128; +k=*AQt^8
F=2*pi*(0:len/2)/len/dt; /E6)>y66
fs=fft(s,len); LW=qX%o{
p=fs.*conj(fs) r6S
p=p(1:len/2+1); =9&2udV1
plot(F,p) TXB!Y!RG#
ylabel('power spectrum density ') 1RkN^FZOxq
xlabel('sequence ') %<yW(s9{
title('03051171') YdI6|o@vc
参数自已改吧