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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
Walter Roberson
Walter Roberson il 7 Gen 2016
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 il 12 Gen 2016
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

Accedi per commentare.

Risposte (0)

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by