Why do I get dates beyond the end date while using the BUSDAYS function with the 'weekly' option?
Afficher commentaires plus anciens
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.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Dates and Time dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!