"Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <email@example.com>... > "Bruno Luong" <firstname.lastname@example.org> wrote in message <email@example.com>... > > "Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <firstname.lastname@example.org>... > > > As I said, I'm trying to speed up the operation of a simple IIR filter. That's it. > > > > > > I was wondering if someone has any experience with that. > > > Is it possible to beat Matlab's "filter" command with a MEX file? > > > Anyone has ever managed to beat the filter command using other Matlab's built in functions? > > > > Hardly. There is no evidence to think Matlab filter is sloppy. > > > > Bruno > > No one has ever tried to improve it using MEX? > How about using the GPU?
Doesn't Matlab's filter function implement the difference equation directly? If so, it might be faster to use fft and the convolution theorem, depending on the filter and signal lengths, and how often you need to recompute the ffts.