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

 Accepted Answer

More Answers (1)

Udit Gupta
Udit Gupta on 1 Dec 2015
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 Comments

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

Sign in to comment.

Categories

Community Treasure Hunt

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

Start Hunting!