Want to add second to a time stamp
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Hi I want to add a time value in second to a time stamp. for example: 10:12:49+ 526 second what will be the output in hr:mm:ss
Thank you.
0 Kommentare
Akzeptierte Antwort
dpb
am 10 Nov. 2015
"Classic" date numbers...
>> datestr(addtodate(datenum('10:12:49','HH:MM:SS'),526,'second'),'HH:MM:SS')
ans =
10:21:35
>>
There's a new date/time class w/ built in methods if have later version to do same thing.
2 Kommentare
dpb
am 10 Nov. 2015
All the above functions are fully vectorized per Matlab general rules; simply replace the constants above with the appropriate variable(s).
After that, writing the output to a file is covered in the "Getting Started" documentation under "Data Import and Export" under the Section "Data and File Management"
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Convert Image Type finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!