"Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <firstname.lastname@example.org>... > "Royi Avital" <RoyiREMOVEAvital@yahoo.com> wrote in message <email@example.com>... > > Hello. > > I'm running an intense simulation which applies an IIR Filter on a large amount of data. > > > > I'm using Matlab's filter function - http://www.mathworks.com/help/techdoc/ref/filter.html > > > > the problem is this procedure takes up to 60% of the running time of the Simulation. > > > > I was wondering if anyone has experience how to speed it up? > > Any MEX file? > > > > I need the most simple implementation - I give the Coefficients and the Data Vector. > > > > Thanks. > > Anyone? > Thanks!
Hi Royi, filter() is a built-in function. Are you saying that the call:
output = filter(B,A, data);
is eating up all your simulation time? Or are you designing your filter inside the simulation?