Matlab: Write a function called May2015 - 77271

Request Posted by

shank_back

Rating : No Rating
Earned: \$0
Request Detail
Price: \$1
• From: Mathematics,
• Due on: Sun 07 Jun, 2015 (09:02pm)
• Asked on: Sun 31 May, 2015
• Due date has passed, but you can still Post Solution.
Description

MATLAB problem

Write a function called May2015  that returns  a struct vector (row or column) whose elements  corresponds  to the days  of  May2015. Each struct  should  contain  three field  with  these exact  field names : "month", "date", and "day"(alll lower case).

•  The month  field  must contain  the string  'May'(uppercase 'M').
• Date field must contain a scalar type double  that equals  the date (1 through 31).
• The day  field must  contain  the three letter abbreviation of  the day chosen  from this list : 'Mon','Tue', 'Wed','Thu','Fri','Sat','Sun'.

For example , here  is a call  of the function followed  by command  that shows  the eleventh element of the struct array  that is  returned  by the function :

>>m = May2015

>>m (11)

ans =

month: 'May'

date: 11

day: 'Mon'

Can you solve this problem?

You can check you solution by runing grader.