How can I interpolate data obtained from two different time intervals?

조회 수: 13 (최근 30일)
Mohammed Mehedi Hasan Arif
Mohammed Mehedi Hasan Arif 2022년 6월 6일
답변: Torsten 2022년 6월 6일
I have two sets of data obtained at two different time intervals. The deflection data is obtained at 0.15sec interval but the loading data is obtained at the rate of 0.50sec. For that reason I have around 1000 values of deflection and 350 values of load. How can I interpolate load data to the interval of 0.15sec?

답변 (2개)

Cris LaPierre
Cris LaPierre 2022년 6월 6일
I would convert the data to timetables and then use the synchronize function to combine the two tables to a common time vector. There are several methods you could use to align the data. Take a look at the linked page to find a method that meets your needs.

Torsten
Torsten 2022년 6월 6일
load_fine = interp1(t_coarse,load_coarse,t_fine)
where t_coarse is the time vector for the load data and t_fine is the time vector for the deflection data.

카테고리

Help CenterFile Exchange에서 Interpolation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by