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

标签

Community Treasure Hunt

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

Start Hunting!

Translated by