Develop an M-file function to determine the elapsed days in a year. The first line of the

Question:

Develop an M-file function to determine the elapsed days in a year. The first line of the function should be set up as function nd = days(mo, da, year) where mo = the month (1–12), da = the day (1–31), and year = the year. Test it for January 1, 1997, February 29, 2004, March 1, 2001, June 21, 2004, and December 31, 2008.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: