Question: Practice Exercise 3 . 1 1 . 1 and 3 . 1 1 . 2 Change the format to shortg so that the result of

Practice Exercise 3.11.1 and 3.11.2
Change the format to shortg so that the result of the following exercises is easier to read.
Practice Exercise 3.11.1
Use the clock function to find the current time and date. Set your answer equal to time1.
Practice Exercise 3.11.2
Use the date function to find the current date. Set your answer equal to date_today.
Update
The clock and date functions are being phased out and as of version 2022b MATLAB suggests you replace them
with the datetime function.
a) Use the datetime function to find the current date and time.
Set your answer equal to time2
b) To find just today's date use datetime('today'). Set your answer equal to date_today2.

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 Programming Questions!