Azzera filtri
Azzera filtri

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

4 visualizzazioni (ultimi 30 giorni)
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?

Risposte (1)

dpb
dpb il 22 Ott 2022
Read as timetable and then use retime. About 2-3 lines of code each should do it.
  2 Commenti
dpb
dpb il 22 Ott 2022
Modificato: dpb il 22 Ott 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.

Accedi per commentare.

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by