| Contents | Index |
Set times of timeseries object as date strings
ts1=setabstime(ts, times)
ts1=setabstime(ts, times, format)
ts1=setabstime(ts, times) sets the times in ts to the date strings specified in times.
ts1=setabstime(ts, times, format) explicitly specifies the date-string format, format, used in times.
ts1 |
The timeseries object that results from setting times as date strings on the original timeseries object. |
Create a timeseries object, and then set the absolute time vector:
ts = timeseries(rand(3,1))
ts1 = setabstime(ts,{'12-DEC-2005 12:34:56',...
'12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'})
% View each timeseries object in the Variable Edtior to see the
% differences in the time vectors for each.datestr | getabstime | timeseries

Explore how to use MATLAB to make advancements in engineering and science.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |