Readtable() turns time stamp into decimal

8 visualizaciones (últimos 30 días)
Amanda Beatty
Amanda Beatty el 14 de Abr. de 2020
Comentada: Amanda Beatty el 15 de Abr. de 2020
I have a table with 40 columns. When I use readtable() it turns the time stamps into decimals and I don't know what the decimals mean. I need to extract the time stamps. And also I don't want the headers, but it reads them anyways.
data = readtable(filename, 'ReadVariableNames', false); %read in data file
Original excel file:
How the data looks in matlab:
  5 comentarios
Walter Roberson
Walter Roberson el 15 de Abr. de 2020
The numbers are fractions of a day, so you can
Time = days(FractionsOfADay);
Time.Format = 'hh:mm:ss';
Amanda Beatty
Amanda Beatty el 15 de Abr. de 2020
Thank you both for helping me out!
Walter, that was exactly what I was trying to do. Thanks so much!

Iniciar sesión para comentar.

Respuestas (0)

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by