Question: 3. Get and save the current date and time a) Create a variable startusing the function clock b) What is the size of start? Is

 3. Get and save the current date and time a) Create

3. Get and save the current date and time a) Create a variable startusing the function clock b) What is the size of start? Is it a row or column? c) What does start contain? See help clock d) Convert the vector start to a string. Use the function datestr and name the new variable startString e) Display the text: -Hint: use the disp command again and remember that strings are just vectors of characters so you can join two strings by making a row vector with the two strings as sub-vectors. f) Remove the time and remain only with 'day', 'month' and 'year'. [10 marks]

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!