How to read ascii with less-than (<) symbol
1 view (last 30 days)
Show older comments
The Matlab import wizard strips the "<" symbol and imports only the number behind it. I would like to know where these symbols appear so I can flag the calculations which contain these values. Does anyone know of a method which is easier than reading and parsing the ascii file line by line?
Thanks!
0 Comments
Accepted Answer
Star Strider
on 21 Feb 2016
I rarely use the Import Wizard, preferring textscan (or for Excel files xlsread).
If your file is readable with textscan, I would read that column in as a string, and then do the ‘<’ detection and numeric conversion in a separate step.
0 Comments
More Answers (0)
See Also
Categories
Find more on Text Files 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!