setabstime (timeseries) - Set times of timeseries object as date strings
Syntax
ts = setabstime(ts,Times)
ts = setabstime(ts,Times,Format)
Description
ts = setabstime(ts,Times)
sets the times in ts to the date strings specified in Times.
Times must either be a cell array of strings, or a char array
containing valid date or time values in the same date format.
ts = setabstime(ts,Times,Format)
explicitly specifies the date-string format used in Times.
Examples
Create a time-series object.
ts = timeseries(rand(3,1))
Set the absolute time vector.
ts = setabstime(ts,{'12-DEC-2005 12:34:56',...
'12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'})
See Also
datestr, getabstime
(timeseries), timeseries
 | set (tscollection) | | setabstime (tscollection) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit