Help Center
Determine if input is timetable
tf = istimetable(A)
tf = istimetable(A) returns logical 1 (true) if A is a timetable, and logical 0 (false) otherwise.
A
1
true
0
false
example
collapse all
Create a timetable and verify that it is a timetable.
Date = datetime(["2015-12-18";"2015-12-19";"2015-12-20"]); Temp = [37.3;39.1;42.3]; Pressure = [29.4;29.6;30.0]; Precip = [0.1;0.9;0.0]; TT = timetable(Date,Temp,Pressure,Precip)
TT=3×3 timetable Date Temp Pressure Precip ___________ ____ ________ ______ 18-Dec-2015 37.3 29.4 0.1 19-Dec-2015 39.1 29.6 0.9 20-Dec-2015 42.3 30 0
tf = istimetable(TT)
tf = logical 1
Convert TT to a table, T. The istimetable function returns 0 because T is not a timetable.
TT
T
istimetable
T = timetable2table(TT); tf = istimetable(T)
tf = logical 0
Input array.
backgroundPool
ThreadPool
This function fully supports distributed arrays. For more information, see Run MATLAB Functions with Distributed Arrays (Parallel Computing Toolbox).
Introduced in R2016b
timetable | iscell | isstruct | isnumeric | isobject | islogical | istable | istabular
timetable
iscell
isstruct
isnumeric
isobject
islogical
istable
istabular
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
Europe
Asia Pacific
Contact your local office