How to design a bandpass filter

I need to design a bandpass filter with sampling rate of 1kHz and bandpass from 1 to 200 Hz and then insert a signal my signal in the filter can any one give the syntax for it? This is for EEG seizure data. I need to preprocess it.
Cheers!
Side note: I own 2011 student version of MATLAB

 Risposta accettata

Più risposte (1)

Udit Gupta
Udit Gupta il 1 Dic 2015

0 voti

The easiest way is to use the Filter Design and Analysis Tool. Just type fdatool in matlab command window. This needs Signal Proc. Toolbox though.

3 Commenti

Ah, is there any way I can write a code for that?
fdatool has the option to generate code for you. Use
File>Generate MATLAB Code
how can my signal be passed into this filter

Accedi per commentare.

Community Treasure Hunt

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

Start Hunting!

Translated by