Access and modify timetable metadata properties
A timetable, TT, has properties that store
metadata such as its variable names, row times, descriptions, and
variable units. TT.Properties returns a summary
of all of the timetable properties.
You can access a property using ,
where TT.Properties.PropNameTT is the name of the timetable and PropName is
one of the timetable properties. For example, to access the VariableDescriptions property
of a timetable named Weather, use Weather.Properties.VariableDescriptions.
You can modify a property value using where TT.Properties.PropName = PTT is
the name of the timetable, PropName is
one of the timetable properties, and P is
the desired property value. For example, to modify the VariableUnits property
of a timetable named Weather, use Weather.Properties.VariableUnits
= where PP is
a cell array of character vectors containing the specified information.
In contrast, you can access and modify variables within a timetable
using or TT.VarName,
where TT.VarName = VTT is the name of the timetable, VarName is
the name of the variable you want to access or modify, and V is
the variable value you want.
You also can concatenate all the timetable variables into an
array using ,
where TT.VariablesTT is the name of the timetable. returns
the same array as the TT.Variables syntax.TT{:,:}