MATLAB Answers

0

Converting time format from hh mm ss to minutes or seconds

Asked by Tarek Zaqout on 17 Mar 2019 at 13:02
Latest activity Answered by Star Strider
on 17 Mar 2019 at 14:17
I imported a time series in the format of HH:MM:SS from excel to matlab but it appeared as 0.4532343954 or something. How can I convert it to minutes or seconds starting zero.
The time data are in 5 seconds intervals.

  0 Comments

Sign in to comment.

Products

1 Answer

Answer by Star Strider
on 17 Mar 2019 at 14:17
 Accepted Answer

Try this:
Tv = datetime(0.4532343954, 'Format','HH:mm:SS', 'ConvertFrom','excel')
Tv =
datetime
10:52:45

  0 Comments

Sign in to comment.