Please make this with a function. This is Matlab question.
Develop an m-file function named Hw3_3_lastnamefirstinitial.m that determines the elapsed days in a year. Set up the function such that it can be called by the following command: nd -Hw3 3 1astnamefirstinitial (mo, da, leap) where nd number of days, mo month (1-12), da -day (1-31), and leap- (0 for non-leap year and 1 for leap year). Test it for January 1, 1997; Feb 29, 2004; March 1, 2001; June 21, 2004; and Dec 31, 2008. Hint: A nice way to do this combines the for loop and switch case structures Show transcribed image text