How to build a bandpass filter by using the butter function?

3 vues (au cours des 30 derniers jours)
Diana Eliza Gherman
Diana Eliza Gherman le 22 Avr 2020
Hello,
I am trying to extract the mu suppression values from my dataset, which doesn't allow using EEGLab. I did most of the steps, but I need to add a bandpass filter and I am not sure how.
The frequency band I would need is 8-13, my sampling rate is 1000 and I was told I would need an order of between 8 and 10.
The MATLab documentations lists this example:
[A,B,C,D] = butter(10,[500 560]/750); d = designfilt('bandpassiir','FilterOrder',20, ... 'HalfPowerFrequency1',500,'HalfPowerFrequency2',560, ... 'SampleRate',1500);
However, I am not sure, what parameters I need to use for my case except for sampling rate and filter order. Also, it is not clear to me what is [A,B,C,D]. I would appreciate any input, I am new to EEG analysis and MATLAB.
Answer this question

Réponses (0)

Catégories

En savoir plus sur EEG/MEG/ECoG dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by