このような以下のプログラムを実行しました.図は得られたdとLchをFFTしたものなのですが,dはxを単純遅延させただけなので本来形は同じになるはずなのですが,半円を何度も描いているようなグラフになっています.特にプログラムに問題はなさそうなのですが,どうしてでしょうか.
Mostrar comentarios más antiguos
clear;
[data,fs]=audioread('2000rpm.wav');
a=[0,1,0,0,0,0,0,0];
L=8;
Lch=data(:,1);
N=numel(Lch);
d=zeros(1,N);
for n=L:N
d(n)=a*Lch(n-L+1:n);
end
f=fs/1024:fs/1024:fs;
fft_Lch=fft(Lch,1024);%fftは同様にしてdも行いました
dB_Lch=mag2db(abs(fft_Lch));
plot(f,dB_Lch)

Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre フーリエ解析とフィルター処理 en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
