[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: averaging/smoothing data

From: Colin Macdonald
Subject: Re: averaging/smoothing data
Date: Wed, 13 Jul 2016 11:08:25 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1

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:


Did you mean:

filter(ones(1,5)/5, eye(5,1), x)

I don't understand what your example does, and it doesn't seem to do anything nice to a random 1D x.

(I don't have a better way, but maybe that would explain why you didn't much response).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]