Summation of colonns from an imported table

1 view (last 30 days)
GG
GG on 28 Nov 2021
Answered: Adam Danz on 28 Nov 2021
I have imported a table conatining data for each month stretching over 10 years. My job is to calculate the average value of the data for each individual month over the 10 years. So my question is how can I sum all the values for each individual month? I can probably figure out how to calculate the average value but the problem is to take the value of the data and itterate it individually for every month over the years.

Answers (1)

Adam Danz
Adam Danz on 28 Nov 2021
You should organize your data within a timetable and use the retime function.
TT2 = retime(TT,'monthly','mean')

Categories

Find more on Tables in Help Center and File Exchange

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!