withtol
R2026bTime tolerance for timetable row subscripting
Description
S = withtol(
creates a subscript to select rows of a timetable. rowTimes,tol)S selects all
rows whose row times match a time in rowTimes within the
tolerance specified by tol. The rowTimes
argument is a datetime, duration, or numeric (double or
single) array, or a cell array of character vectors that
specify dates and times. tol must be a nonnegative duration or
numeric value.
rowTimes must match the type of the timetable row times:
If
rowTimescontainsdatetime(or text representing datetimes) values, then you only can useSto subscript into a timetable withdatetimerow times.If
rowTimescontainsdurationvalues, then you only can useSto subscript into a timetable withdurationrow times.If
rowTimescontains numeric values, then you only can useSto subscript into a timetable with numeric row times.
S = withtol(
creates a row subscript using an event filter. To use event filters, the timetable
you subscript into must have an attached event table. For more information on
specifying a time tolerance using event filters, see EF,tol)eventfilter. (since R2023a)