DSPRelated.com
Forums

Help on vectorization. IIR filter

Started by all4...@yahoo.com June 10, 2010
Hello everybody,

I'm trying to vectorize my code to avoid using for-loop operator.



as far as i understand - this kind of recurrent relation is very common in DSP and corresponds to one-pole IIR filter.

If 'gain' is a constant scalar value then I can rewrite it using standard built-in matlab function:



but what if 'gain' is represented by 1xN vector? Is there any way it can be rewritten without for-loop statement?
Thank you.