timeseries
Set timeseries times as date character vectors
tsout = setabstime(tsin,timevals)
tsout = setabstime(tsin,timevals,timeformat)
example
tsout = setabstime(tsin,timevals) sets the times in timeseries object tsin to the date character vectors specified in timevals.
tsin
timevals
tsout = setabstime(tsin,timevals,timeformat) explicitly specifies the format of timeformat used in timevals.
timeformat
collapse all
Set date character vectors as the time values in a timeseries object.
tsin = timeseries((1:3)'); tsout = setabstime(tsin,{'12-DEC-2005 12:34:56','12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'});
Input timeseries, 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
getabstime
You have a modified version of this example. Do you want to open this example with your edits?