Moving average of n points: use conv : data = [1 2 4 6 8 11 5]; n = 3; result = conv(data, repmat(1/n, [1 n]), 'valid');. Cumulative average from the ...
確定! 回上一頁