how can I calculate the number of cristalysing cycles in MATLAB?

1 visualización (últimos 30 días)
Hamed Hedayatnia
Hamed Hedayatnia el 19 de Nov. de 2019
Respondida: Mahesh Taparia el 22 de Nov. de 2019
HI. I am engaged with a meteorological dataset. I am working on the relative humidity variable based on hourly data. I want to calculate the number of cycles in which, the relative humidity cross the 75.3%. for two consecutive days. How can I show this phase change point in in index to apply it on my timetable?

Respuestas (1)

Mahesh Taparia
Mahesh Taparia el 22 de Nov. de 2019
Hi Hamed,
To count the number of times RH>75.3%, first you store your dataset in a variable and take a counter (initialize to 0) variable in a for loop. Then check for the condition whether RH>75.3%, if so then set count=count+1. The final count value will give the required frequency. For example, consider the below code:
Count=0;
for i=1:length(data)
if(data(i)>75.3)
Count=Count+1;
else
end
end

Categorías

Más información sobre Language Fundamentals 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