Interpolate to monthly time series

3 Ansichten (letzte 30 Tage)
Sarah Yun
Sarah Yun am 27 Dez. 2019
Kommentiert: Walter Roberson am 27 Dez. 2019
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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 27 Dez. 2019
We recommend converting your timeseries to a timetable() object and then using retime()
  2 Kommentare
Sarah Yun
Sarah Yun am 27 Dez. 2019
I have done this but it removes the date column when I convert back to array.
So, I want to use the interp1 function to avoid this data loss.
Walter Roberson
Walter Roberson am 27 Dez. 2019
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Time Series finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by