필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Count the number of times certain conditions occur in a plot

조회 수: 1 (최근 30일)
Joshua Pretorius
Joshua Pretorius 2021년 10월 5일
마감: Sabin 2023년 3월 7일
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
Mathieu NOE
Mathieu NOE 2021년 10월 5일
hello
have you started already a code ?
all the best

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by