Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Determining stop band attenuation from FIR Filter properties?

Asked by Saumya on 30 Sep 2013
Latest activity Commented on by Saumya on 30 Sep 2013

Greetings!

I am trying to determine the Filter properties mostly stop band attenuation of a FIR Filter designed by the given coefficients stored in a row vector. To design the filter from the given coefficients, I am trying to use either 'dsp.FIRFilter' or 'dfilt.dffir'. I am not able to use the 'measure' command on the objects obtained.

Is there any other command (other than measure) using which I can extract the value of the stop band attenuation which I have to compare with a given value?

Thank you

2 Comments

Saumya on 30 Sep 2013

For example, if I try: b=fir1(10,0.4); h=dsp.FIRFilter('NumeratorSource','Property','Numerator',b);

h is the same object as created by the 'design' command but measure is responding to the h returned by dsp.FIRFilter while it does for 'design' returned object. In the help link, it is mentioned that 'measure' accepts filter objects from dsp.FIRFilter ???

Please help!

Saumya on 30 Sep 2013

Sorry for the typo: 'measure' is not responding to dsp.FIRFilter returned filter object

Saumya

Products

No products are associated with this question.

0 Answers

Contact us