Okay so different coefficients for x and y. Got it. And these get stored into an array.
Doubt, I understand how to find the filter coefficients for an FIR filter since I only need to get the x coefficients. But for an IIR filter, how do I get the coefficients for x and y? Would the x coefficients be the same as they were for an FIR filter of equivalent performance? And how would the y coefficients vary from these?
To implement a circular buffer technique, we could have the nth value of the circle to be spit out to MatLab every cycle?
For example, if the circle was of four values. Every time the next value gets added to the circle, the oldest value needs to be discarded. Instead of discarding, maybe it could be sent back to MatLab?