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