matlab - Unable to apply coefficient of Kaiser window in C++ visual studio 2010 -


i trying pass data through low pass filter having cutoff frequency 1 hz in c++ visual studio 2010. design kaiser window through matlab , 20 coefficient. here matlab code:-

fc = 1; % cutoff frequency 1 hz wn = (2/fs)*fc; b = fir1(20,wn,'low',kaiser(21,3)); 

now i, got this link low pass filter. here code given in link.

/* c function implementing simplest lowpass:  *   *      y(n) = x(n) + x(n-1)  *  */ double simplp (double *x, double *y,                 int m, double xm1) {   int n;   y[0] = x[0] + xm1;   (n=1; n < m ; n++) {     y[n] =  x[n]  + x[n-1];   }   return x[m-1]; } 

but don't know how apply coefficient of kaiser window in given example in link. so, please tell me how this.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -