How to sum over next delta of rows

조회 수: 1 (최근 30일)
Antonio Melieni
Antonio Melieni 2019년 4월 18일
편집: Antonio Melieni 2019년 4월 18일
Hi,
I have a 527040 x 4 table
I need a new table, that gives me for each i = size(array,1) the sum of the next delta of rows
So for example set delta = 4
row 1 should be sum of rows 2 to 5
row 2 should be sum of rows 3 to 6 and so on
me biggest problem now is, i dont know what to do at the end of my input table if the number of remaining rows is smaller then my delta. I think the best idea is to just cut them out....
any ideas?
I use MATLAB R2019a for students

답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by