MATLAB: Time of day deduction

time conversion

I have a matrix with sequential elements from 1 to 86,400; one for every second of the day. Is anyone aware of a built-in function that would allow me to convert any given element value in this array into a figure/string that would show me the corresponding hours, minutes, and seconds (HH:MM:SS)?

Best Answer

The datestr function comes quickly to mind.