我这有个初程序不知对你有没有用 wpmtv325
clear `buTP?]4.
dt=; %时间间隔 2AE|N_v8W
s= %信号数组 3P>@ :
len=128; >r Glj
F=2*pi*(0:len/2)/len/dt; Dn!V)T
fs=fft(s,len); SjU6+|l
p=fs.*conj(fs) N|d@B{a(
p=p(1:len/2+1); B-zt(HG
plot(F,p) %%u4('=
ylabel('power spectrum density ') L1+cv;t
xlabel('sequence ') I<#kw)W!
title('03051171') bsVOO9.4-
参数自已改吧