How to use textscan to read this .dat file?
Show older comments
Hi,
I fail to use textscan to read the following formatted data. What should be the correct argument to read it and let the same data type be in a single array? Thanks!
{"time":1431653957, "OD":0.0010, "Z":0.0000, "U":0}
{"time":1431654017, "OD":0.0007, "Z":0.0000, "U":0}
{"time":1431654077, "OD":-0.0005, "Z":0.0000, "U":0}
{"time":1431654137, "OD":-0.0015, "Z":0.0000, "U":0}
3 Comments
Instead of giving us this short and probably edited version of the text, please simply upload the file using the paperclip button. You will need to push both Choose file and Attach file buttons.
It is much easier for us to work with the real data file, rather than trying to interpret this text.
Hsinho
on 17 May 2015
Accepted Answer
More Answers (0)
Categories
Find more on Text Data Preparation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!