Butterworth bandpass filter on a signal

I need to process a signal. I have fixed the zero offset but now I need to run it through a butterworth bandpass filter. I have went through the guide on how to do it but I'm still unclear on how to do it and what should be done. Can anyone show me how this could be done? and what variables are needed to perform this?
This is how the signal looks like:
clf;
A = importdata('A-scan.txt');
As = detrend(A,0); %remove zero offset
% Design and apply the bandpass filter (not working yet)
order = ;
fcutlow = ;
fcuthigh = ;
[b,a] = butter(order,[fcutlow,fcuthigh]/(fs/2), 'bandpass');
x = filter(b,a,A);
plot(x,'k');

3 Kommentare

Sankar Ram T
Sankar Ram T am 2 Aug. 2018
Bearbeitet: Sankar Ram T am 3 Aug. 2018
Did this work for you finally? I have a 125Hz signal and need to design a bandpass for 10-250 Hz range. But I can't get it to work.
Hafiz Ahmad
Hafiz Ahmad am 2 Aug. 2018
It works! You can design the filter with the details you just mentioned.
Sankar Ram T
Sankar Ram T am 3 Aug. 2018
Can you share the final code you used? I am not an electronics person and have no experience in signal processing.
I am finding it quite hard to understand and implement a filter.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Filipe Braganca
Filipe Braganca am 2 Aug. 2018

0 Stimmen

Have you tried using the FIlter Designer app? Type in your command window >> filterDesigner
Also see: https://nl.mathworks.com/help/signal/ug/getting-started-with-filter-designer.html

Gefragt:

am 28 Okt. 2017

Kommentiert:

am 3 Aug. 2018

Community Treasure Hunt

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

Start Hunting!

Translated by