%% Return a Vector of Indices to Date Numbers
% This example shows how to return a vector of indices to date numbers.

Superset = datenum(1999, 7, 1:31);
Subset = [datenum(1999, 7, 10); datenum(1999, 7, 20)];
Indices = datefind(Subset, Superset, 1)

% Copyright 2015 The MathWorks, Inc.