Write a function dayname that has one input argument day


For each of the problems below, document the following:

1. Identify the problem statement

2. Define the inputs and outputs to each problem

3. Show a pseudo code design of the solution

4. Show that you have tested your MATLAB code appropriately

a) Write a function dayName that has one input argument, day, containing the numerical value of a day in the month of November, 2014. Your function should return the name of that day as a string. For example: dayName(3) should return 'Monday'

b) You are now given a variable named days, a vector that contains the numeric values of days in the month of November, 2014. Write a script that will convert each numeric value in the vector days into a string named daysOfWeek with the day names separated by a comma and a space. For example, if days = [3, 4, 5], daysOfWeek should be 'Monday, Tuesday, Wednesday'. Notice that there is no separator before the first day or after the last day.

Request for Solution File

Ask an Expert for Answer!!
MATLAB Programming: Write a function dayname that has one input argument day
Reference No:- TGS0793812

Expected delivery within 24 Hours