On 07/13/2016 02:08 PM, Colin Macdonald
wrote:
On 13/07/16 09:58, Przemek Klosowski wrote:
Often, I
need to smooth/average a data vector. I usually do a running
average using filter(), e.g. for 5-value average:
filter(ones(1:5)/5,eye(5,1),x)
Did you mean:
filter(ones(1,5)/5, eye(5,1), x)
Yes, of course; sorry for the slip-up.
Thanks for pointing out the filters in the signal package. I am
still surprised that there's no built-in core function, although I
understand how it'd be difficult to come up with an universally
pleasing one.
|