Converting a time field (+000:00:00) in a table to a usable format
2 views (last 30 days)
Show older comments
Hello, I am trying to plot signal data in a table that has seems to be in HH:MM:ss format. I am trying to convert the time column to seconds but have been having issues using datetime. I am using readtable to convert the data from excel but unsure how to proceed. Thank you!
0 Comments
Answers (1)
Star Strider
on 14 Sep 2022
format long G
dt = datetime('now','Format','yyyy-MM-dd HH:mm:ss.SSSSSS') + minutes(0:0.1:1).'
dts = second(dt,'secondofday')
.
0 Comments
See Also
Categories
Find more on Logical 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!