How to get monthly average
2 views (last 30 days)
Show older comments
I have data (47 * 1)for 26 months starting in 2015 ending in 2107 as the Xlsx file
Some months it has 3 values and some are 2 or1
I want to get average values for each month as new-data(26*1).
Any suggestion, to help me?
0 Comments
Answers (1)
dpb
on 15 Oct 2018
t=readtable('month.xlsx');
t=table2timetable(t);
mn=retime(t.Var1,'monthly',@mean);
I didn't download the file so if there are variable names for Var1 use whatever the variable is.
2 Comments
See Also
Categories
Find more on Spreadsheets in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!