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 .
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Create scripts with code, output, and formatted text in a single executable document.
The inbuilt MATLAB function |weekday| does this:
http://www.mathworks.com/help/matlab/ref/weekday.html
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.