On Fri, May 17, 2019 at 17:11:21 -0500, turbofib via Help-octave wrote:

> hi,

> sorry but i don't understand..

>

> look this example:

>

> 1

> 2

> 3

> 4

> 8 2,701851217 (stdev 5 last element)

> 6 2,408318916 (stdev 5 last element)

> 7 2,073644135 (stdev 5 last element)

> 8 1,673320053 (stdev 5 last element)

> 9 1,140175425 (stdev 5 last element)

> 10 1,58113883 (stdev 5 last element)

>

> this is result using excel..

>

> (is not zero as octave give me :)

You are looking for the moving standard deviation, calculated over a

sliding window.

>> lookfor "standard deviation"

movstd Calculate the moving standard deviation over a s...

statistics Return a vector with the minimum, first quartile...

std Compute the standard deviation of the elements o...

>> movstd (x, 5)

>> movstd (x, [4, 0])

--

mike