Info
Cette question est clôturée. Rouvrir pour modifier ou répondre.
Count the number of times certain conditions occur in a plot
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For a project, i have data in the form of wind speed (m/s) recorded with 1 minute intervals, starting from 2009 through to 2021. For the time of each recording I have created a datetime array in the form of yyyy:MM:dd_HH:mm:ss, and for the wind speed recorded at each minute i have created a double array.
The wind speed ranges from 0 through to 40+ m/s. For the project, certain machines get damages at wind speeds above 30 m/s. When plotting the data, points above 30 m/s appear individually or in small clumps(events). However, these small clumps are either far from other clumps or are relatively close to eachother. Therefore, if small clumps are relatively close together, they are counted as a single event.
So, I need to count the total number of events above 30 m/s based on the following conditions.
- Max time length between 'clumps' = 30 minutes
- when clumps are within 30 minutes from subsequent clumps, they are considered a single event
- when a clump is more than 30 minutes from subsequent clump(s), it is considred a single event
Also, I would like to have code that allows me to easily change the length of time between clumps to be considred a single event.
Any help or guidance would be greatly appreciated,
Thanks!
1 commentaire
Réponses (0)
Cette question est clôturée.
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!