Financial Toolbox
  Go to function:
    Search    Help Desk 
datefind    Examples   See Also

Indices of date numbers in matrix.

Syntax

Arguments

sub
Subset matrix of date numbers used to find matching date numbers in super. These date numbers must be a non-repeating subset of those in super.
super
Superset matrix of non-repeating date numbers whose elements are sought.
tol
Tolerance (+/-) for matching the date numbers in super. A positive integer. Default = 0.

Description

ind = datefind(sub, super, tol) returns a vector of indices to the date numbers in super that are present in sub, plus or minus the tolerance tol. If no date numbers match, ind = [].

Although this function was designed for use with sequential date numbers, you can use it with any non-repeating integers.

Example

See Also

datenum



[ Previous | Help Desk | Next ]