I am writing a smartphone application (Android, iPhone) that does some DSP. I am an experienced programmer. I also took one EE class for students in DSP and know how to use Matlab.
I would like to apply low-pass and band-pass filters to my signal in the time domain. In my opinion, I need to convolve my time domain samples and filter coefficients. In Matlab, I would use the fir1 () function to get the filter coefficients and the conv () / filter () functions to apply convolution.
I know how to write a convolution function in Java / C, but I don't know how to generate filter coefficients . I know that for the low-pass filter, the coefficients come from the sinc function, and the band-pass filter is basically a shifted low-pass filter. How can I programmatically generate these coefficients?
source share