/* FILTER.C An ANSI C implementation of MATLAB FILTER.M (built-in) Written by Chen Yangquan 1998-11-13 Recursive and real-time version. */ #include #define ORDER 3 #define NP 1001 main() { FILE *fp; float x[NP],y[NP],a[ORDER+1],b[ORDER+1]; float in_buffer[ORDER+1],out_buffer[ORDER]; float xin,xout; int i,j; int SP; /* printf("hello world \n"); */ if((fp=fopen("acc1.dat","r"))!=NULL) { for (i=0;i