help-octave
[Top][All Lists]
Advanced

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

Re: std


From: Juan Pablo Carbajal
Subject: Re: std
Date: Sat, 18 May 2019 03:14:08 +0200

Hi,

You need to get use to read the help of the functions. The third input
argument of std indicates along which dimension the function will
compute, that is 1 for "along columns", 2 for "along rows", 3 for
"along pages" (in a 3D matrix), etc...

We do not understand what you want to do with. If you explain what you
mean by "5 elements" we can give better answers.

>From you example it seems you mean the std in the last 5 elements, that would 
>be

std (vv(end-4:end))
ans =  186.01

If you want std on a moving window of size 5 you can do

movstd(data, 5)
ans =

    79.955
    91.922
   100.859
    87.834
    69.483
    80.843
   103.496
    97.835
    90.237
    82.031
    65.459
    54.994
    58.322
    98.814
   135.773
   153.632
   177.823
   190.644
   186.009
   150.281
   101.332



reply via email to

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