Clear Filters
Clear Filters

Band pass filter design

2 views (last 30 days)
öncü uzun
öncü uzun on 1 Mar 2019
Commented: öncü uzun on 1 Mar 2019
Hi lads ,
I want to ask how can ı apply band bass signal an audio file which is 'wav'.
  1 Comment
öncü uzun
öncü uzun on 1 Mar 2019
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

Sign in to comment.

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 1 Mar 2019
Edited: KALYAN ACHARJYA on 1 Mar 2019
[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 Comment
öncü uzun
öncü uzun on 1 Mar 2019
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?

Sign in to comment.

Categories

Find more on Audio Processing Algorithm Design in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

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

Start Hunting!