MorganS:
If you wanted to use Processing for this, you can't have Matlab send the data direct to the COM port, because you can't split transmit and receive to different programs.
Okay so I now understood that I need to have MatLab or Processing input data into the Arduino and once the Arduino sends the processed data back, the same software must display it. I'll do some reading on how to do this. But do you have any thoughts on which would be better, MatLab or Processing?
Also just for clarification, once I get the filter coefficients, I make a matrix of say N values and use each value individually to get a response (by multiplying the corresponding input for FIR, or inputs and output for IIR). Is this correct?
I'll try developing a code if this logic is right.
MrMark:
IIR is left as an exercise for the student, but it isn't much different.
The change would be "y = y[i]*w[i] + x[i]*w[i]"
Is this logic correct?