moving mean over 5 cells

1 visualización (últimos 30 días)
C.G.
C.G. el 22 de Feb. de 2022
Editada: DGM el 22 de Feb. de 2022
I have a dataset where im trying to find the mean of every 5 cells and then divide this by 5
I have the code below, but I have done this in excel and the results are not matching.
f = (movmean(E,5,'Endpoints','discard')/5);

Respuestas (1)

DGM
DGM el 22 de Feb. de 2022
Editada: DGM el 22 de Feb. de 2022
Well yeah I imagine it's off by a factor of 1/5 ... because you're dividing the mean by 5.

Categorías

Más información sobre Tables en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by