- https://se.mathworks.com/matlabcentral/answers/384643-determine-index-of-a-value-monthly-from-excel-table#answer_307159
- retime, Resample or aggregate data in timetable, and resolve duplicate or irregular times
computing the average of all each month from all data in time series
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
nada
am 11 Jun. 2018
Kommentiert: nada
am 12 Jun. 2018
Hi, I have used xls file data..i want to make average data all each month ..for all data in time series ..like mean for all Jun , Mar....from column D. the example in file. * how i can do that*
1 Kommentar
per isakson
am 12 Jun. 2018
Bearbeitet: per isakson
am 12 Jun. 2018
See
and try the example Aggregate Timetable Data and Calculate Mean Values
Akzeptierte Antwort
Rishabh Rathore
am 12 Jun. 2018
Bearbeitet: Rishabh Rathore
am 12 Jun. 2018
Hey, I understand that you want the average of each column (representing months).
You can use mean() to do that.
For example if you want average of 2nd,3rd and 4th column you can use
avg=mean(data(:,2:4),2);
This will return a 1X3 matrix with mean of 2,3 and 4 columns respectively.
Note:- I'm assuming you are importing the data as matrix.
3 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Preprocessing finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!