R = movstd(A, window)
R = movstd(A, window, d)
R = movstd(..., nanflag)
R = movstd(..., 'Endpoints', endpoints)
[R, M] = movstd(...)
| Parameter | Description |
|---|---|
| A | input array. |
| window | positive scalar window length. |
| d | dimension to operate along: positive integer scalar. |
| Parameter | Description |
|---|---|
| R | Moving standard deviation. |
| M | Moving mean computed over the same windows as R (same size as R; a timetable for a timetable input). |
movstd computes standard deviations over a centered moving window.
A = [1 2 8 4 5];
R = movstd(A, 3)
A = [4 8 6 -1 -2 -3 -1 3 4 5];
[R, M] = movstd(A, 3)
| Version | Description |
|---|---|
| 2.0.0 | initial version |
| 2.0.0 | moving mean returned as second output. |