Summation of colonns from an imported table

1 visualizzazione (ultimi 30 giorni)
GG
GG il 28 Nov 2021
Risposto: Adam Danz il 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.

Risposte (1)

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

Categorie

Scopri di più su Tables in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by