Help interpolating time series
13 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I have a time series that measures waves every 3hrs and would like to interpolate it so it measures every hour. I've been trying to do this using interp1 but have been unsuccesful. Please help.
Cheers
0 comentarios
Respuestas (1)
Azzi Abdelmalek
el 5 de Feb. de 2013
Editada: Azzi Abdelmalek
el 5 de Feb. de 2013
x=[0 1 2 4]
y=sin(x)
xi=[0 0.5 1 1.5 2 2.5 3 3.5 4]
method='spline'
yi=interp1(x,y,xi,method)
0 comentarios
Ver también
Categorías
Más información sobre Interpolation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!