How can you calculate the mean of paired figures moving down a column of a variable?
조회 수: 1 (최근 30일)
이전 댓글 표시
I am trying to calculate the mean of paired values working down a column of a variable.
The attached image shows the 19x1 matrix. I need to calculate the mean of row 1 and 2, 2 and 3, 3 and 4, and so on...
I am a novice to Matlab and this is for a university report. Any help would be greatly appreciated.
채택된 답변
Image Analyst
2017년 3월 6일
Try movmean
means = movmean(m, 2)
or else try
means = conv(m, [.5,.5], 'same');
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 NaNs에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!