Borrar filtros
Borrar filtros

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

4 visualizaciones (últimos 30 días)
Jeffrey Eiyike
Jeffrey Eiyike el 22 de Oct. de 2022
Editada: dpb el 22 de Oct. de 2022
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?

Respuestas (1)

dpb
dpb el 22 de Oct. de 2022
Read as timetable and then use retime. About 2-3 lines of code each should do it.
  2 comentarios
Jeffrey Eiyike
Jeffrey Eiyike el 22 de Oct. de 2022
Please I will like to use a for loop
dpb
dpb el 22 de Oct. de 2022
Editada: dpb el 22 de Oct. de 2022
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Loops and Conditional Statements en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by