help-octave
[Top][All Lists]
Advanced

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

Re: Weighted Moving Average


From: Quentin Spencer
Subject: Re: Weighted Moving Average
Date: Tue, 14 Aug 2007 08:31:23 -0500
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Luca Delucchi wrote:

Sorry but I have another problem, how can I put inside a vector the
result of the average? I have try many way but they are all wrong.

If you want the moving average of vector "x" in a new vector "y", it should be as simple as:

y = filter(ones(1,10)/10, 1, x);

Maybe I'm misunderstanding your question, so if that was not the answer, please explain more.

Quentin



reply via email to

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