How do you write a program that gives the current time and day?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Alexis Williams
am 8 Feb. 2021
Beantwortet: KSSV
am 8 Feb. 2021
I am very new to programming, and cannot figure out how to run this program correctly. My work is shown below. Please Help!
time = clock ();
day = date ();
fprintf('The current date is %f\n', day);
fprintf('The current time is %0f\n', time);
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Dates and Time finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!