필터 지우기
필터 지우기

How to used firpm.m function?

조회 수: 3 (최근 30일)
Nuzat Alam
Nuzat Alam 2013년 4월 18일
Hiii
I am working with a code where i tried to construct a wiener filter. I used firpm function and this function requires an array of f where i can give the ranges of frequencies to define my pass and stop bands. I dont know how to define f. I am also giving the code for firpm.
firpm(order,[0 0.156 0.43 0.62 0.82 1],[0 0 1 1 0 0],[10,1,10])
I dont know how to get [0 0.156 0.43 0.62 0.82 1]. Do i need to define these values by signal fft magnitude spectrum? but again i dont know how.
Any help will be highly appreciated.

답변 (1개)

Honglei Chen
Honglei Chen 2013년 4월 22일
That is your frequency vector that contains the boundaries of your pass bands and stop bands. In your example, it means that you have a stop band between 0 and 0.156, a pass band between 0.43 and 0.62 and a stop band between 0.82 and 1. The frequency values are determined by your application, i.e., what are the frequencies you want to pass and what are the frequencies you want to stop. You can find more information in the doc page

카테고리

Help CenterFile Exchange에서 Digital Filtering에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by