Business days in serial date format
bdates = busdays(sdate, edate, bdmode) bdates = busdays(sdate, edate, bdmode, holvec)
Start date in string or serial date format.
End date in string or serial date format.
(Optional) Frequency of business days:
Strings must be enclosed in single quotation marks.
(Optional) Holiday dates vector in string or serial date
format. Using a
bdates = busdays(sdate, edate, bdmode) generates
a vector of business days,
bdates, in serial date
format between the last business date of the period that contains
the start date, and the last business date of period that contains
the end date. If
holvec is not supplied, the dates
are generated based on United States holidays. If you do not supply
a daily vector.
vec = datestr(busdays('1/2/01','1/9/01','weekly'))
vec = 05-Jan-2001 12-Jan-2001
The end of the week is considered to be a Friday. Between 1/2/01 (Monday) and 1/9/01 (Tuesday), there is only one end-of-week day, 1/5/01 (Friday).
Because 1/9/01 is part of the following week, the following Friday (1/12/01) is also reported.
bdates = busdays(sdate, edate, bdmode, holvec) lets
you supply a vector of holidays,
holvec, used to
generate business days.
holvec can either be in
serial date format or date string format. If you use this syntax,
you must supply the frequency
bdates, is a column vector of
business dates in serial date format.
 (empty vector) results in
a default holiday schedule. The default holiday schedule is the NYSE