How can I convert this cell array into time stamps?
Show older comments
I have a cell array, 1729 x 1, and I need each cell converted. I've tried the datetime command but I only need HH:mm:ss.
>> t = datetime(.0028356,'ConvertFrom','datenum')
t =
datetime
31-Dec--0001 00:04:04
4 Comments
Jan
on 3 Dec 2018
Where is the cell array?
Juan Moreta
on 3 Dec 2018
Jan
on 4 Dec 2018
You said "cell array". Now you mention an xls file. Did you import the file already or is this a part of the problem?
Juan Moreta
on 4 Dec 2018
Accepted Answer
More Answers (1)
t = datetime(.0028356, 'ConvertFrom', 'datenum', 'Format', 'HH:mm:ss')
3 Comments
Juan Moreta
on 3 Dec 2018
Jan
on 4 Dec 2018
Which array? You mentioned a cell array, but did not explain, where it occurs.
Juan Moreta
on 4 Dec 2018
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!