我这有个初程序不知对你有没有用 xmd$Jol^
clear 58U[r)/
dt=; %时间间隔 5j5t?G;d,
s= %信号数组 )3">%1R
len=128; oYx
f((x
F=2*pi*(0:len/2)/len/dt; Ap18qp
fs=fft(s,len); [/j-d
p=fs.*conj(fs) |]b/5s;>
p=p(1:len/2+1); 8so}^2hTlT
plot(F,p) _Fy:3,(
ylabel('power spectrum density ') wb"t:(>&
xlabel('sequence ') 30`H
Xv@
title('03051171') [c )\?MWW
参数自已改吧