Menu

Given Following Function Function Year Month Day Convert Date D Dayd 2 Year 2000 D 3 Switc Q43793934

Hello whats the MATLAB script for b) ? Thanks
Given the following function: function (year, month, day) -Convert Date(d) dayd(2); year-2000+d (3); switch (1) case 1 monthGiven the following function: function (year, month, day) -Convert Date(d) dayd(2); year-2000+d (3); switch (1) case 1 month January’; case 2 month=’February’; case 3 month=’March’; case 4 month=’April’; case 5 month-‘May’; case 6 month’June’; case 7 month=’July’; case 8 month=’August’; case 9 month-‘September’; case 10 month=’October’; case 11 month November’; case 12 month December’, otherwise month’Invalid date’, end (a) State which variables are the input and which the output arguments. (b) The built-in clock function returns a six element date vector containing the current time and date in decimal form: [year month day hour minute seconds) Write a script that calls the clock function and the ConvertDate function and outputs text to the screen in the following format to show when the script was executed: ‘This script was run on the 18 January 2017 Show transcribed image text Given the following function: function (year, month, day) -Convert Date(d) dayd(2); year-2000+d (3); switch (1) case 1 month January’; case 2 month=’February’; case 3 month=’March’; case 4 month=’April’; case 5 month-‘May’; case 6 month’June’; case 7 month=’July’; case 8 month=’August’; case 9 month-‘September’; case 10 month=’October’; case 11 month November’; case 12 month December’, otherwise month’Invalid date’, end (a) State which variables are the input and which the output arguments. (b) The built-in clock function returns a six element date vector containing the current time and date in decimal form: [year month day hour minute seconds) Write a script that calls the clock function and the ConvertDate function and outputs text to the screen in the following format to show when the script was executed: ‘This script was run on the 18 January 2017

Expert Answer


Answer to Given the following function: function (year, month, day) -Convert Date(d) dayd(2); year-2000+d (3); switch (1) case 1 m…

OR