Why do I get dates beyond the end date while using the BUSDAYS function with the 'weekly' option?
Show older comments
The following code illustrates the problem:
v=datestr(busdays('5/22/00','5/20/02','weekly'));
v(end,:)
The above code gives the following output for the last date 'v(end,:)' generated by the BUSDAYS function:
ans =
24-May-2002
It is evident that the last date in the output of the BUSDAYS function goes beyond the end date.
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!