How can I convert the time to hours,minutes and seconds using matlab?

8 vues (au cours des 30 derniers jours)
D Joseph
D Joseph le 5 Sep 2015
Commenté : Star Strider le 6 Sep 2015
tic;
%program code
t=toc;
In what format the time t is displayed. How can I convert and display that time to hours,minutes and seconds?

Réponse acceptée

Star Strider
Star Strider le 5 Sep 2015
One possibility:
t_hms = datevec(t./(60*60*24)) % Express ‘t’ As Fraction Of A Day, Then Use ‘datevec’ To Convert

Plus de réponses (0)

Catégories

En savoir plus sur Logical dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by