필터 지우기
필터 지우기

Readtable() turns time stamp into decimal

조회 수: 8 (최근 30일)
Amanda Beatty
Amanda Beatty 2020년 4월 14일
댓글: Amanda Beatty 2020년 4월 15일
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
Walter Roberson
Walter Roberson 2020년 4월 15일
The numbers are fractions of a day, so you can
Time = days(FractionsOfADay);
Time.Format = 'hh:mm:ss';
Amanda Beatty
Amanda Beatty 2020년 4월 15일
Thank you both for helping me out!
Walter, that was exactly what I was trying to do. Thanks so much!

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by