1. Engineering
  2. Computer Science
  3. mat lab question i can not seem to figure out...

Question: mat lab question i can not seem to figure out...

Question details

MAT LAB QUESTIONTask 2 - Function with if and switch (15 points) The following script is given: dayinput (Day of a month in [1, 311: lastDigit mod (day, 10) month - input (Month [1, 12]: ); % Double quotes are used to create an array of strings % You get access to each element by monthText (1), monthText (2), monthText June, JulyAugust, September, October, November, December [January, February, March, April, May, = dateoutput (day, lastDigit, month, monthText); Example for a am run Day of a month in [1, 31]: 17 Month 1, 12]: 1 You entered the 17th of January Student ID HINT: The th after the 17 corresponds to the following table suffix st ndrd th 3 4, 5, 6,7, 8. 9, 10. 11, 12, 13.14, 15. 16. 17, 18, 19, 20 day of month 22 23 31 24, 25, 26,27,28. 29, 30 Write the missing function dateOutput) using if and switch to create the last line of the program ru Solution 2

I can not seem to figure out what the answer is. If someone could give me a detailed explanation on doing this in MATLAB

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution