Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

Interpolation Question Regarding Value Alignment

2 visualizaciones (últimos 30 días)
Eric Yoshida
Eric Yoshida el 23 de Feb. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
I have 2 sets of data, both dependent on time. Y has about 300 measurements each spaced 4 seconds apart (one at .4, one at .8, etc), while X has about 100 measurements each spaced 3 seconds apart. How can I interpolate the measurements from Y to give me 100 Y values spaced 3 seconds apart (so they match up with the timing of X)

Respuestas (1)

KSSV
KSSV el 23 de Feb. de 2020
Let t be your 4 seconds sampled time and y be your respective data.
dt = 3 ;
ti = min(t):dt:max(t) ;
yi = interp1(t,y,ti) ;

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by