Financial Toolbox | ![]() ![]() |
Syntax
Indices = datefind(Subset, Superset, Tolerance)
Description
Indices = datefind(Subset, Superset, Tolerance)
returns a vector of indices to the date numbers in Superset
that are present in Subset
, plus or minus the Tolerance
. If no date numbers match, Indices = []
.
Examples
Superset = datenum(1999, 7, 1:31); Subset = [datenum(1999, 7, 10); datenum(1999, 7, 20)]; Indices = datefind(Subset, Superset, 1) Indices = 9 10 11 19 20 21
See Also
datenum
![]() | datedisp | datemnth | ![]() |