please help my code this on matlab
nce, may be used to compute A formuna, calied zener\'s Corgruer 131 is given below E20 pts1 dates). The formul modulo 7 the squmre brackets denote the integer part, modulo 7 where vided by 7 and the remainde the month number, with January and February taken months 11, 12 of the preceding Year, so March is then month 1, and December month 10, k the day of the month c the century number y the year in the century; f 1 means Sunday, 2 means Monday, etc For example, 23rd August 1963 is represented by m 6, k 23, c-19, y 63; 1st January 1800 is represented by 11, k 1, c 17, y 99. (a) Write a function dayo which takes the date in the form of a vector d [dd mm yyyy (e.g. 19 3 2001) for March 9, 2001 and returns the day of the week (in words) on which it falls (b) Test your program on some known dates, like today\'s date, or your birthday.
Use a function weekday of matlab i.e
[N, S] = weekday(D)
where N is a day number of a week and s is a string form.
or
Alternatively, specify \'dayofweek\' to return the day of the week as a number.
| N | S (short) | S (long) |
| 1 | Sun | Sunday |
| 2 | Mon | Monda |
| 3 | Tue | Tuesday |
| 4 | Wed | Wednesday |
| 5 | Thu | Thursday |
| 6 | Fri | Friday |