Create vector of monthly means from arbitary time format and vector of sampled temperatures.

2 ビュー (過去 30 日間)
Nick Ward
Nick Ward 2020 年 9 月 25 日
コメント済み: Ameer Hamza 2020 年 9 月 29 日
I am a student and Matlab novice looking to use 2 vectors to determine a monthly mean. One vector is time (mtime 1:22529), and the other is a vector of 6 hourly water column means (meancoltemp 1:22529) sampled from a moored oceanographic lab.
I would like to determine the monthly means. The data starts 1st April 2002 and ends 1st September 2017.
As I say, I'm a novice - I have tried a few different methods suggested by my university advisor which have all been incompatible. Any help appreciated and if you need more info please just ask.
Thanks,
Nick.

回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 9 月 25 日
編集済み: Ameer Hamza 2020 年 9 月 29 日
See retime(): https://www.mathworks.com/help/matlab/ref/timetable.retime.html. For a more specific example, please attach a sample dataset.
  3 件のコメント
Nick Ward
Nick Ward 2020 年 9 月 29 日
Ameer,
Thank you for the updated link. That makes more sense to me unsing the timetable function.
Ameer Hamza
Ameer Hamza 2020 年 9 月 29 日
Yes, sorry for the confusion earlier. Let me know in the comment if there is some problem using retime with your data.

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

カテゴリ

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

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by