how to convert time in its standard form to seconds?
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Radhika
am 10 Mär. 2014
Kommentiert: Radhika
am 18 Mär. 2014
Hi Team,
I have time in its standard format Hh:mm.ss loaded from excel sheet. how can i convert it into complete seconds which helps me in further calculation.
0 Kommentare
Akzeptierte Antwort
Mischa Kim
am 10 Mär. 2014
Bearbeitet: Mischa Kim
am 10 Mär. 2014
t1 = '12:45:07';
t2 = '13:45:07';
dt_sec = round((datenum(t2,'HH:MM:SS') - datenum(t1,'HH:MM:SS'))*(24*3600))
dt_sec =
3600
4 Kommentare
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!