Set tscollection times as date character vectors
tscollection
tscout = setabstime(tscin,timevals)
tscout = setabstime(tscin,timevals,timeformat)
example
tscout = setabstime(tscin,timevals) sets the times in tscollection object tscin to the date character vectors specified in timevals.
tscin
timevals
tscout = setabstime(tscin,timevals,timeformat) explicitly specifies the format of timeformat used in timevals.
timeformat
collapse all
Create a tscollection object and define the absolute time vector.
tscin = tscollection(timeseries(rand(3,1))); tscout = setabstime(tscin,{'12-DEC-2005 12:34:56','12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'})
Time Series Collection Object: unnamed Time vector characteristics Start date 12-Dec-2005 12:34:56 End date 12-Dec-2005 14:34:56 Member Time Series Objects: unnamed
Input tscollection, specified as a scalar.
Sample times, specified as a cell array of date character vectors. Valid date character vectors can have the following forms:
dd-mmm-yyyy HH:MM:SS
01-Mar-2000 15:45:17
dd-mmm-yyyy
01-Mar-2000
mm/dd/yy
03/01/00
mm/dd
03/01
HH:MM:SS
15:45:17
HH:MM:SS PM
3:45:17 PM
HH:MM
15:45
HH:MM PM
3:45 PM
mmm.dd,yyyy HH:MM:SS
Mar.01,2000 15:45:17
mmm.dd,yyyy
Mar.01,2000
mm/dd/yyyy
03/01/2000
Data Types: cell
cell
Time format, specified as a scalar date format used for the time values.
getabstime | timeseries | tscollection
getabstime
timeseries
You have a modified version of this example. Do you want to open this example with your edits?