Home > freetb4matlab > time > busdate.m

busdate

PURPOSE ^

%

SYNOPSIS ^

function rd = busdate (rd, d, hol, wkend)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} {b =} busdate (refdate)
% @deftypefnx {Function File} {b =} busdate (refdate, direction)
% @deftypefnx {Function File} {b =} busdate (refdate, direction, holiday)
% @deftypefnx {Function File} {b =} busdate (refdate, direction, holiday, weekend)
%
% Return the datenum of the next or previous business day from
% @var{refdate}. @var{direction} indicates the next day (default) if 1
% and the previous day if -1.  @var{holiday} is a vector of datenums
% that defines the holidays observed (the holidays function is used if
% not given).  @var{weekend} defines the days of the week that should
% be considered weekends; [1 0 0 0 0 0 1] (default) indicates that
% Sunday and Saturday are holidays.
%
% If any of the optional inputs (@var{direction}, @var{holiday},
% @var{weekend}) are empty, then the default is used.
%
% @seealso{holidays, lbusdate, isbusday, fbusdate}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003