MATLAB: How to implement digital iir lowpass filter in C programming by using coefficients of this filter

dspiir filter

these are coefficients;
[b,a]=sos2tf(SOS)
b =
1 5 10 10 5 1
a =
1.0000 -4.9980 9.9919 -9.9878 4.9919 -0.9980

Best Answer

You find a complete filter implementation in C inside FEX: FilterM
A Matlab version can be found here: http://www.mathworks.com/matlabcentral/answers/9900#answer_13623 and the converion to C should be easy.