2015-11-15 12:00:00
49.025
51.45
29.61
2015-11-15 18:00:00
48.9
51.225
29.607
2015-11-16 00:00:00
48.5
51.4
29.61
As an alternative, you can specify a time vector that has the same six-hour time intervals. Specify a
format for the time vector to display both date and time when you display the timetable.
tv = datetime(2015,11,15):hours(6):datetime(2015,11,18);
tv.Format = 'dd-MMM-yyyy HH:mm:ss';
TT = retime(outdoors,tv,'mean');
TT(1:5,:)
ans=5×3 timetable
Time
Humidity
TemperatureF
PressureHg
____________________
________
____________
__________
15-Nov-2015 00:00:00
48.9
51.45
29.61
15-Nov-2015 06:00:00
48.9
51.45
29.6
15-Nov-2015 12:00:00
49.025
51.45
29.61
15-Nov-2015 18:00:00
48.9
51.225
29.607
16-Nov-2015 00:00:00
48.5
51.4
29.61
See Also
timetable | table2timetable | synchronize | retime
Related Examples
•
“Create Timetables” on page 10-2
•
“Combine Timetables and Synchronize Their Data” on page 10-8
•
“Retime and Synchronize Timetable Variables Using Different Methods” on page 10-14
•
“Select Times in Timetable” on page 10-19
•
“Clean Timetable with Missing, Duplicate, or Nonuniform Times” on page 10-27
Resample and Aggregate Data in Timetable
10-7
49.025
51.45
29.61
2015-11-15 18:00:00
48.9
51.225
29.607
2015-11-16 00:00:00
48.5
51.4
29.61
As an alternative, you can specify a time vector that has the same six-hour time intervals. Specify a
format for the time vector to display both date and time when you display the timetable.
tv = datetime(2015,11,15):hours(6):datetime(2015,11,18);
tv.Format = 'dd-MMM-yyyy HH:mm:ss';
TT = retime(outdoors,tv,'mean');
TT(1:5,:)
ans=5×3 timetable
Time
Humidity
TemperatureF
PressureHg
____________________
________
____________
__________
15-Nov-2015 00:00:00
48.9
51.45
29.61
15-Nov-2015 06:00:00
48.9
51.45
29.6
15-Nov-2015 12:00:00
49.025
51.45
29.61
15-Nov-2015 18:00:00
48.9
51.225
29.607
16-Nov-2015 00:00:00
48.5
51.4
29.61
See Also
timetable | table2timetable | synchronize | retime
Related Examples
•
“Create Timetables” on page 10-2
•
“Combine Timetables and Synchronize Their Data” on page 10-8
•
“Retime and Synchronize Timetable Variables Using Different Methods” on page 10-14
•
“Select Times in Timetable” on page 10-19
•
“Clean Timetable with Missing, Duplicate, or Nonuniform Times” on page 10-27
Resample and Aggregate Data in Timetable
10-7
