Interpolate to monthly time series
8 次查看(过去 30 天)
显示 更早的评论
Hello,
I have a timeseries of time against temperature - smallest unit of time is hour
I want to interpolate so the month is the smallest unit of time.
How should I use this function to do this?
vq = interp1( x , v , xq )
Thank you
0 个评论
采纳的回答
Walter Roberson
2019-12-27
We recommend converting your timeseries to a timetable() object and then using retime()
2 个评论
Walter Roberson
2019-12-27
https://www.mathworks.com/help/matlab/ref/timetable2table.html adds the times back in as a column in the table. Or you can
timeseries(YourTimeTable{:,:}, YourTimeTable.Properties.RowTimes)
to create a timeseries object.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Time Series 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!