moving mean over 5 cells

조회 수: 1 (최근 30일)
C.G.
C.G. 2022년 2월 22일
편집: DGM 2022년 2월 22일
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);

답변 (1개)

DGM
DGM 2022년 2월 22일
편집: DGM 2022년 2월 22일
Well yeah I imagine it's off by a factor of 1/5 ... because you're dividing the mean by 5.

카테고리

Help CenterFile Exchange에서 Tables에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by