istimetable

Tests whether a value is a timetable.

Category: Language Fundamentals > Data Types

Syntax

tf = istimetable(A)

Returns true if A is a timetable.

Description

A timetable is a table whose rows are labeled by datetime or duration values. A plain table gives false. Convert a table that has a time column with table2timetable.

Input arguments

A
Any value.

Output arguments

tf
Logical scalar.

Example

Timetable or table

TT = timetable(seconds([0;1]), [5;6]);
istimetable(TT)
istimetable(timetable2table(TT))
Output
ans = logical
   1
ans = logical
   0

See also

istable istabular timetable table2timetable