Documentation Center

  • Trial Software
  • Product Updates
我们为许可用户提供了部分翻译好的中文文档。您只需登录便可查阅这些文档

setabstime (tscollection)

Set times of tscollection object as date strings

Syntax

tsc = setabstime(tsc,Times)
tsc = setabstime(tsc,Times,format)

Description

tsc = setabstime(tsc,Times) sets the times in tsc using the date strings Times. Times must be either a cell array of strings, or a char array containing valid date or time values in the same date format.

tsc = setabstime(tsc,Times,format) specifies the date-string format used in Times explicitly.

Examples

  1. Create a tscollection object.

    tsc = tscollection(timeseries(rand(3,1)))
    
  2. Set the absolute time vector.

    tsc = setabstime(tsc,{'12-DEC-2005 12:34:56',... 
          '12-DEC-2005 13:34:56','12-DEC-2005 14:34:56'})
    

See Also

| |

Was this topic helpful?