/* FILTER.C An ANSI C implementation of MATLAB FILTER.M (built-in) Written by Chen Yangquan 1998-11-11 */ #include #define ORDER 3 #define NP 1001 /* void filter(int,float *,float *,int,float *,float *); */ filter(int ord, float *a, float *b, int np, float *x, float *y) { int i,j; y[0]=b[0]*x[0]; for (i=1;i