Matlab, for loop code
1 回表示 (過去 30 日間)
古いコメントを表示
I have a series data of hourly and daily climate data of over 10yrs. And what i want to plot them into a graph of mean monthly and in yearly. Can you tell me how to do it in MATLAB? Thank you very much!
1 件のコメント
Arif Hoq
2022 年 3 月 17 日
attach your data. if possible please try to show your expected result. atleast 2/3 lines
回答 (1 件)
Cris LaPierre
2022 年 3 月 17 日
I don't know much about your data, but I would see if groupsummary works. If you have datetime info in your data, you can use the 'groupbin' input to specify a way to automatically group your data ('month' or 'year') and then apply method(s) to each group (e.g. 'mean').
I find this workflow easiest when the data is stored in Tables. See this page on how to access data in tables.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!