Extract Maximum daily temperature

2 visualizzazioni (ultimi 30 giorni)
Ahmed Elshoura
Ahmed Elshoura il 28 Apr 2020
Modificato: Ahmed Elshoura il 5 Mag 2020
I have temperature data measured hourly (24 temperature values for each day) for 2 years. After filtering the data and remove the void readings, some days have 24 temperature readings, other have 20 temperature reading, others have 12 readings, etc. In other words, each day has a different number of temperature readings.
The task is to extract the maximum temperature value for each day (one value for each day). In other words, I want to extract the max temperature value based on the day.
FYI, date formate is: "MM/DD/YYY HH:00 am/pm"
Any idea to resolve this problem?
  5 Commenti
Star Strider
Star Strider il 28 Apr 2020
Read the data as a table, convert it to a timetable using table2timetable (or read it directly with readtimetable (R2019a and later) if you have it), then use the retime function.
Ahmed Elshoura
Ahmed Elshoura il 5 Mag 2020
Modificato: Ahmed Elshoura il 5 Mag 2020
Thanks a lot. retime resolve the problem.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Timetables 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