Question: 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

Hello whats the MATLAB script for b) ? Thanks
Hello whats the MATLAB script for b) ? Thanks Given the following

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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!