#### kai_sikorski

Gold Member

- 162

- 0

I could divide up my region into a discrete set of points and find the average for each of those. However that wastes some of the data because, say I start the process at x

_{0}, y

_{0}. During the next time step the position is x

_{1}, y

_{1}, and so if the total exit time is T then not only do I have the data point

x

_{0}, y

_{0}, T

but also

x

_{1}, y

_{1}, T - dt

However x

_{1}, y

_{1}is probably not exactly one of any predefined start points I defined.

So what I would like to do is take the whole list of data

{ { x

_{0}, y

_{0}, T}, {x

_{1}, y

_{1}, T-dt}, {x

_{2}, y

_{2}, T- 2 dt}, ... }

And apply a moving average filter. Is there a built in method for doing this in Matlab or Mathematica? I can find documentation for things like the filter2 command in Matlab, this seems to apply more to a case where your data is indexed by a discrete sets of points so that you can arrange it in for example a matrix. That's not the case here where the data is basically indexed by floats.