Calculating Time Intervals Between measurements

6 visualizaciones (últimos 30 días)
WILLBES BANDA
WILLBES BANDA el 29 de Mzo. de 2020
Comentada: WILLBES BANDA el 29 de Mzo. de 2020
Hi, i have a set of values stored in vector Humidity. I have to first determine frequency of Humidity then use the frequency to calculate the time intervals between measurements and then store them in a nx2 vector : Time = [Hours Minutes] where hours are stored in the first column and minutes on the 2nd. The code below shows how i calculate my frequency but i do not know how to go about and find time intervals between measurements. Please help.
Humidity =38.4883
48.9108
38.1505
32.1763
49.5666
35.6956
48.6161
38.2022
45.4608
44.0763
45.9497
31.8542
44.8167
38.2594
39.1150
34.7962
37.1204
42.2333
37.2489
This is the code i used to calculate my frequency, am not sure whether it`s correct or not, please help.
for LenHumi = 1:1:length(Humidity)
HumidityPeriod = (24/length(Humidity))*3600;
HumidityFrequency = 1/HumidityPeriod;
end

Respuestas (1)

Cris LaPierre
Cris LaPierre el 29 de Mzo. de 2020
Time is incorporated into frequency (cycles/unit of time). What are the units of your frequency? It looks like Hz, which means cycles/second.
  3 comentarios
Cris LaPierre
Cris LaPierre el 29 de Mzo. de 2020
We would need to know something about the time course of data. Does your assignment contain any details?
WILLBES BANDA
WILLBES BANDA el 29 de Mzo. de 2020
it says that All measurements are taken over a 24-hour time period and that`s all it says regarding time

Iniciar sesión para comentar.

Categorías

Más información sobre Mathematics en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by