Info

This question is closed. Reopen it to edit or answer.

toannual calculates sums and averages of a fints incorrectly

1 view (last 30 days)
Converting a monthly fints to an annual one using toannual includes the parameters to calculate cumulative sums and simple averages. For example, a monthly fints of data fts = [1 2 3 4 5 6 7 8 9 10 11 12] ought to give a CumSum of 78 and a SimpAvg of 6.5. Instead, the expression fts = toannual(fts,'CumSum') gives 54 and fts = toannual(fts,'SimpAvg') gives 6.75.
Please help out

Answers (0)

Community Treasure Hunt

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

Start Hunting!