我这有个初程序不知对你有没有用 8vhg{L..
clear F_m[EB
dt=; %时间间隔 ])dq4\Bw
s= %信号数组 hOI|#(-
len=128; VEolyPcsg&
F=2*pi*(0:len/2)/len/dt; JEF2fro:Z
fs=fft(s,len); H
/E.R[\+x
p=fs.*conj(fs) N# Ru`;
p=p(1:len/2+1); .%{3#\
plot(F,p) =.@{uu;
ylabel('power spectrum density ') t)Iu\bP
xlabel('sequence ') <&n\)R4C1
title('03051171') eOZ0L1JM!
参数自已改吧