How to select discrete data from continuous time-series data?

3 ビュー (過去 30 日間)
Parthu P
Parthu P 2020 年 5 月 23 日
回答済み: Ameer Hamza 2020 年 5 月 23 日
I have discrete temperature observations and a continuous rainfall timeseries. I want to select rainfall values from a continuous timeseries corresponding to date of discrete observations. How could I do this in matlab?
Here is example data
Discrete observations Continuous timeseries data
Date Temperature Date Rainfall
11/02/1994 08:40 32 1/02/1994 08:40 10
22/03/1994 08:40 29 - -
20/04/1994 08:50 29 - -
17/05/1994 08:40 25 - -
11/06/1994 08:40 24 - -
27/07/1994 08:50 29 31/07/1994 08:40 21
Thanks in advance for help.

採用された回答

Ameer Hamza
Ameer Hamza 2020 年 5 月 23 日
Try something like the following code if you have the data in the form of a table.
temp_value = 29; % get all rainfall values for temperature equal to 29
idx = T_temp.Temperature == 29; % T_temp is the table with discrete temperature value
rain_fall = T_rain.Rainfall(idx);

その他の回答 (0 件)

カテゴリ

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