How to I locate intervals of time series data, with intervals of data having specific length and similar mean?

4 ビュー (過去 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

回答 (1 件)

Turlough Hughes
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 件のコメント
Turlough Hughes
Turlough Hughes 2019 年 11 月 18 日
Can you upload part or all of the data?
Max Thelen
Max Thelen 2019 年 11 月 18 日
sorry I can't upload the data as it was provided to me under the condition it would be kept confidential. I am able to put the wind speed data in a single column vector but how could I then obtain all combinations of 600 consecutive data points with mean within a given range (the timestamp for the points doesnt need to be saved as i can start each set from 1s)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeTime Series についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by