フィルターのクリア

Calculate the mean of the values in each time serie

2 ビュー (過去 30 日間)
amine&&
amine&& 2017 年 4 月 22 日
コメント済み: amine&& 2017 年 4 月 23 日
Hello, i have a data of time series. I want to get these data on regular time intervals (each 15 min). How I can achieve this task under matlab?

採用された回答

Walter Roberson
Walter Roberson 2017 年 4 月 22 日
If you have a new enough version of MATLAB, you can use a timetable() and use retime()
  4 件のコメント
Walter Roberson
Walter Roberson 2017 年 4 月 22 日
Your image appears to be using timetable objects; your original question asked about time series. If you do have timeseries objects, you can use the resample() method.
amine&&
amine&& 2017 年 4 月 23 日
Thanks Roberson for your help. In fact the command that i needed was
resample(timeSeries.Variables,1,15);
since i had the data every 15 minutes.

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

その他の回答 (1 件)

Image Analyst
Image Analyst 2017 年 4 月 22 日
Use interp1() to resample the data at the desired interval.
  3 件のコメント
Image Analyst
Image Analyst 2017 年 4 月 22 日
OK. But It's hard for anyone to give you specific recommendations or code when you don't even show us what form your data is in. So why don't you just resample all your vectors so that they cover the same time intervals, add them up, and divide by the number of vectors. Will that not work?
amine&&
amine&& 2017 年 4 月 22 日
Hi Image Analyst. this is not complicate enough as you say. But the function interp1 () does not work for my series that you find enclosed a screenshot.

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

カテゴリ

Help Center および File ExchangePreprocessing Data についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by