我曾经也遇到过相同的问题,到网上四处找人帮助,现给你一个matlab编的小程序,不知有没有用 3 cK I
clear $Avjnm
dt=0.017; JR@`2YP-
s=;%输入序列对数组或波的表达式 *V8<:OG|e
len=256; {tYZt4!{^
F=2*pi*(0:len/2)/len/dt; U@uGNMKR
fs=fft(s,len); ;;6uw\6
O
p=fs.*conj(fs) V{/?FO?E
p=p(1:len/2+1); CYY=R'1:G{
plot(F,p) Y[}>CYO
ylabel('power spectrum density ') 4NheWM6
xlabel('sequence ')