How average datetime data daily?
    5 Ansichten (letzte 30 Tage)
  
       Ältere Kommentare anzeigen
    
    Ahmet Hakan UYANIK
 am 1 Sep. 2022
  
    
    
    
    
    Beantwortet: Star Strider
      
      
 am 1 Sep. 2022
            Hello,
I have a datetime vector with a size of 140257x1 and have data points with a size of 2178x140257. That means for each point(2178) has a data of time series(140257) in that matrix. So I have 2 different matrix, one of them stores the time and another is data for each point. Normally there is retime function in matlab but it works with tables. Also this is possible with for loop but it is costly. 
How can I average my data points matrix daily in a smart way?
Thank you for your time and effort.
0 Kommentare
Akzeptierte Antwort
  Star Strider
      
      
 am 1 Sep. 2022
        I would first transpose the data vector matrix, then use array2table to create a table with the data matrix, then use the addvars function to put the datetime vector as the first variable.  Then use table2timetable and then use retime.  
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
				Mehr zu Tables 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!

