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 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by