How to convert seconds to date and time
4 次查看(过去 30 天)
显示 更早的评论
I have a cell array Time = 465*1 containig seconds. I want to convert seconds into date and hour. SInce I have aircraft data, each cell contains irregular dates.
for example: My first file contains date: 20050519, accordingly TIme{1,1}. I tried 'datetime' function which is able to extract datetime for single file.
Days = datetime(2005,05,19)) + seconds(Time{1,1});
I want to extract all secons with respective dates. I extract dates as a string for loop but getiing error. I attached matfiles of dates and seconds.
Any help would be appreciated.
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!