How to calculate the daily and yearly mean of a temperature dataset

4 次查看(过去 30 天)
I have hourly temperature data 1PM October 1 2012 to noon October 1 2017 (exactly 5 years (including a leap day in 2016 (about 45252). I want to the average temperature, the amplitude of the daily temperature (sine component and cosine component) and the amplitude of the yearly temperature (sine component and cosine component) using a for loop. Can anyone give me useful suggestion?

回答(1 个)

dpb
dpb 2022-10-22
Read as timetable and then use retime. About 2-3 lines of code each should do it.
  2 个评论
dpb
dpb 2022-10-22
编辑:dpb 2022-10-22
No. NOT "the MATLAB way".
Don't follow the comment/request re: a sine/cosine component, either...not going to produce the requested data values that way.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Loops and Conditional Statements 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by