MATLAB: How to split time in to hours, minutes and nanoseconds

str2doublestrsplittime series

Hello,
I would like to split my timserias in order to convert them to to nanoseconds, what I have so far is:
t = ('16:45:00.103450009');
tt=str2double(strsplit(t,':'));
But double shows only four numbers after decimal point, what would be the way to achieve this?

Best Answer

see format and adapt whatever is suitable for you
format long g %at the very beginning