Find the day of week for any given date.
The trick is to put March 1st as the first day of the year. Regardless to know if the date is in the leap year or not.
Feng Cheng Chang (2021). The day of week (https://www.mathworks.com/matlabcentral/fileexchange/54784-the-day-of-week), MATLAB Central File Exchange. Retrieved .
The inbuilt MATLAB function |weekday| does this:
It also has more input options, more output options, and is not a third-party file. If there is any advantage to using this submission the author has kept it secret from us.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!