Why do I get dates beyond the end date while using the BUSDAYS function with the 'weekly' option?
Mostrar comentarios más antiguos
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.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Dates and Time en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!