Calculate difference between two times when I export text file to excel

조회 수: 1 (최근 30일)
Nicolas Rodriguez
Nicolas Rodriguez 2016년 1월 7일
댓글: Adithya Addanki 2016년 1월 12일
Hi, I am working on a time stamp program in matlab and I want to calculate the difference in times that I have registered with my program once I open the file in excel. Every time I try to subtract both times I get a #value! error in excel. Any help will be really appreciated.
Thank you
  댓글 수: 2
Walter Roberson
Walter Roberson 2016년 1월 7일
How are you writing the time stamps to excel? Are you writing them as strings, or as MATLAB datenum, or as MATLAB datetime objects, or are you converting datenum or datetime objects to excel numeric dates, or are you using writetable() of a table that contains datetime objects?
Adithya Addanki
Adithya Addanki 2016년 1월 12일
Hi Nicolas,
As Walter mentioned, please verify the data type of the variables.
If it does not resolve the issue, please send us the workflow you follow and a sample code to help us reproduce the issue.
Thank you,
Adithya

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

답변 (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