我这有个初程序不知对你有没有用 C]cw@:o%
clear Uk4">]oct
dt=; %时间间隔 8&bj7w,K
s= %信号数组 #U6qM(J
len=128; ;C%EF
F=2*pi*(0:len/2)/len/dt; ,)G,[ih
fs=fft(s,len); b*i+uV?
p=fs.*conj(fs) i&KODhMpP
p=p(1:len/2+1); @YELqUb*
plot(F,p) p
IToy;]
ylabel('power spectrum density ') ?HTwTi5!)
xlabel('sequence ') /|f]L9)2<
title('03051171') e^TF.D?RS
参数自已改吧