How to do complex bandpass filter in matlab?

I know the theory behind the topic but i didn't manage to create the filter with matlab. I'am using firpm command to first create the low pass filter.
Could someone give a short example how it's done with some bandpass range?

답변 (1개)

Wayne King
Wayne King 2013년 11월 28일

0 개 추천

You have to use cfirpm() not firpm() and then specify your constraints.
For example:
b = cfirpm(30,[-1 -.5 -.4 .7 .8 1],@lowpass);
fvtool(b); % View filter response.

댓글 수: 1

Vili
Vili 2013년 11월 29일
thanks for answer but I think it coulb be done with firpm. First you have to do a lowpass filter prototype with firpm and then multiply that using a complex exponential to get the actual complex filter impulse response.

댓글을 달려면 로그인하십시오.

카테고리

제품

질문:

2013년 11월 28일

댓글:

2013년 11월 29일

Community Treasure Hunt

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

Start Hunting!

Translated by