How can I get precipitation data only for summer (June~August for 30 years)?
1 次查看(过去 30 天)
显示 更早的评论
I have a daily precipitation data for 30 years. Then how can I get precipitation only for summer (June~August for 30 years)?
0 个评论
采纳的回答
Walter Roberson
2022-9-2
but instead of == 6 you would ismember() against the month numbers you want.
dbp's solution there already includes month number in the data and asks to group by month, whereas my solution there would need a small enhancement to group by month, as it assumes exactly one month in its present form.
3 个评论
Walter Roberson
2022-9-6
ismember(t.Month, {'June', 'July', 'August'})
include September if appropriate for your area (where I live, September might be technically summer, but it would be common for there to be a frost by the end.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import and Analysis 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!