How to I locate intervals of time series data, with intervals of data having specific length and similar mean?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have a few hours worth of wind speed data and need to locate ten minute intervals which all have similar mean wind speed, turbulence intensity and peak value.
thanks
댓글 수: 0
답변 (1개)
Turlough Hughes
2019년 11월 12일
If you have a timeseries ts you could do the following (assuming your timeseries is in seconds)
idx=ismember(ts.Time,[600:600:length(ts.Time)]); % 600 seconds being 10 minutes
ts.Data(idx)
If you don't have exatly 10minute intervals, for example the nearest value to 10 minutes is 10min 01 secs, you may need to opt for ismembertol instead of ismember.
댓글 수: 4
참고 항목
카테고리
Help Center 및 File Exchange에서 Time Series에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!