Band pass filter design

1 次查看(过去 30 天)
öncü uzun
öncü uzun 2019-3-1
Hi lads ,
I want to ask how can ı apply band bass signal an audio file which is 'wav'.
  1 个评论
öncü uzun
öncü uzun 2019-3-1
Thank you sir bu ı dont understand last part little fs should Fs is it because our sampling frequency is defined in the audio wav file

请先登录,再进行评论。

回答(1 个)

KALYAN ACHARJYA
KALYAN ACHARJYA 2019-3-1
编辑:KALYAN ACHARJYA 2019-3-1
[y,Fs]=audioread('audio.wav');
% define cutoff frequencies
fc1=?
fc2=?
bandpass(y,[fc1 fc2],fs);
Similar answer is avaliable here, please check, detail documentation
  1 个评论
öncü uzun
öncü uzun 2019-3-1
a=('audio_signal.wav');
[y,fs]=audioread(a);
sound(y,fs);
figure(1);
plot(y);
spec=abs(fftshift(fft(y)));
Nfft=numel(y);
c=linspace(-fs/2,fs/2,Nfft);
plot(c,spec);
q=bandpass(spec,[2500 5000],fs);
figure(2);
plot(q)
what is wrong in this coding?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Signal Processing Toolbox 的更多信息

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by