help-octave
[Top][All Lists]
Advanced

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

moving average with nan data


From: febty febriani
Subject: moving average with nan data
Date: Wed, 19 May 2010 09:23:45 +0900

Hi everyone,

If I have data like below
1
2
3
nan
3
4
5
nan
8
9

How can I do the three points moving average of data?
I tried to use :

b=ones(1,3)/3;
y=filter(b,1,x);

but, it didn't work.
any help is appreciated.

--

******
febty febriani
Indonesian Institute of Sciences
Research Center for Physics
Kompleks PUSPIPTEK
Serpong, Indonesia, 15314

reply via email to

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