%% Create Sequence of Dates Falling on Specific Day of Week
% Generate a sequence of dates consisting of the next three occurrences of Friday.

t = datetime('today')

%

t2 = dateshift(t,'dayofweek','Friday',1:3)

% Copyright 2015 The MathWorks, Inc.