If a table is indexed by datetime values i.e., it has a row with datetime values, the easiest way to access these values is by using the table_name.Properties.RowTimes property.
Here is an example:
main.m234 chars8 lines
Here, datetime_values will be a datetime array containing all the datetime values used as row names in the table.
If you want to extract a particular datetime value, you can use standard MATLAB indexing. For example:
main.m142 chars4 lines
Here, data_value will contain the value of 3, which is associated with the specific_time value.
gistlibby LogSnag