フィルターのクリア

Extract month values (rows) out of year matrix

2 ビュー (過去 30 日間)
Luke McLellan
Luke McLellan 2018 年 7 月 27 日
再開済み: Walter Roberson 2018 年 12 月 22 日
Hi there,
I have a matrix that contains 1 years worth of data (where the elements correspond to date x time) ranging from the 1st January to 31st December; each row represents 1 day of data. Is anyone aware of a method to average each column over each month? Any help would be appreciated.
Thanks
Luke

回答 (1 件)

jonas
jonas 2018 年 7 月 27 日
https://se.mathworks.com/matlabcentral/answers/317655-calculate-avergae-values-per-hour-day-month-and-year
I suggest using Sean de Wolski's answer with datetime and retime
  1 件のコメント
Luke McLellan
Luke McLellan 2018 年 7 月 27 日
Thanks. I have seen this before but could not get it working. I believe it is because I am dealing with data directly, meaning that each data point in the matrix is representative of a date and time. Whereas, the example is clearly split into Year Month ... format.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeData Type Identification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by