Question: this needs to be done in matlab please answer with a picture of the code on your device thanks!!! ill upvote!!! (c) Write a script
(c) Write a script entitled lab0104.m that accepts 2 dates/times (month, day, year, hour, minute, second) and calculates the elapsed number of years, months, days, hours, minutes, and seconds between the dates. Hint: you can use the following function to calculate the number of elapsed seconds since Jan 1,0000 AD str - 'March 28, 2012 11:51:00'; ti - datevec (str , mmmm dd, yyyy HH:MM:SS') You will need to find 2 times (t1, t2) and calculate the difference. Don't forget to include leap years (note that 2000 was not a leap year). If you want the current time use t2 = clock. Again, be sure to comment
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
