How do I import a timestamp from an ASCII File?
Show older comments
Good Evening,
I am trying to calculate the difference in phase% (one of the columns in the documents that I attached) between two sensors -- Sensor 1 and Sensor 2. The main problem is that each sensor begins recording at a different time point. Luckily, they have timestamps. I am interested in utilizing these timestamps to "line up" the data to subtract the correct number from Sensor 2 at the same specific point in time from Sensor 1. Eg. (12:30:00 Sensor 1 Phase% Value) - (12:30:00 Sensor 2 Phase% Value).
I have been very successful using the Import Wizard and I can manipulate the data but the time column is converted into a string leaving the same, very small decimal in each cell. How do I indicate to the Import Wizard that the timestamp should be a different format or is there a simple way to manipulate the code to import the data as a time (hh:mm:ss)? I have attached .txt files instead of the original ASCII files and I have also attached the .m file that the import wizard has generated.
Thanks! Brittany
Accepted Answer
More Answers (0)
Categories
Find more on Dates and Time in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!