Interpolate to monthly time series
    4 vues (au cours des 30 derniers jours)
  
       Afficher commentaires plus anciens
    
    Sarah Yun
 le 27 Déc 2019
  
    
    
    
    
    Commenté : Walter Roberson
      
      
 le 27 Déc 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
0 commentaires
Réponse acceptée
  Walter Roberson
      
      
 le 27 Déc 2019
        We recommend converting your timeseries to a timetable() object and then using retime()
2 commentaires
  Walter Roberson
      
      
 le 27 Déc 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.
Plus de réponses (0)
Voir également
Catégories
				En savoir plus sur Time Series dans Help Center et File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

