Hi,
I got an original data(a vector, size is 1*N):
the format is like this: ๐ 1:๐ฅ1,๐ฅ2,๐ฅ3โฆ๐ฅ๐
And I need 20 series,
The scale 2 series was obtained by averaging two successive values from the original series. Scale 3 was obtained by averaging every three original values and so on as shown in equation.
๐ 2:(๐ฅ1+๐ฅ2)/2,(๐ฅ3+๐ฅ4)/2,โฆ,(๐ฅ๐โ1+๐ฅ๐)/2
๐ 20:(๐ฅ1+โฏ+๐ฅ20)/20,โฆ,(๐ฅ๐โ20+โฏ+๐ฅ๐)/20
How can I achieve this in Matlab?
1 Comment
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/652238-mean-neighbour-values-of-a-vector#comment_1143533
Direct link to this comment
https://au.mathworks.com/matlabcentral/answers/652238-mean-neighbour-values-of-a-vector#comment_1143533
Sign in to comment.