Data vectors with different time intervals

2 ビュー (過去 30 日間)
Simon
Simon 2015 年 3 月 25 日
回答済み: Chris McComb 2015 年 3 月 25 日
Hi, I am working with data vector that have different lengths due to the difference in time interval:
(1) Temperature data (T) - this is at hourly intervals;
(2) Moisture Content data (MC) - this is at 5 min intervals.
I need to apply a correction factor to MC. This factor is a function of T (i.e. MC_Uncorrected +(20-T) * (0.526-0.052*MC_Uncorrected + 0.00136*MC_Uncorrected^2).
Does anybody know how I can do this when the intervals are different?

回答 (1 件)

Chris McComb
Chris McComb 2015 年 3 月 25 日
You should interpolate the temperature data. You can do this using a variety of methods, which you can find here. I'd recommend using cubic splines, as these will give you a smooth curve that is guaranteed to go through the existing data points.

カテゴリ

Help Center および File ExchangeMultirate Signal Processing についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by