How to read a csv which contains both string and numbers with diferrent number of delimiters at each row?
Ältere Kommentare anzeigen
I have a csv file which contains both string and numbers so I use textscan to read it. My problem is that each row has diferrent number of delimiters as a result different number of columns. How I can read it?
thank you very much
4 Kommentare
Shane
am 16 Okt. 2015
Can you give an example of two rows of data that differ in delimiters?
Kelly Kyriakou
am 16 Okt. 2015
Bearbeitet: Guillaume
am 16 Okt. 2015
Guillaume
am 16 Okt. 2015
This looks more like an xml file or it is some sort of custom formatting. Attach an entire file to know for sure.
In any case, it's not a file that can be read with matlab's csv file functions. You're going to have to write your own parser.
Kelly Kyriakou
am 16 Okt. 2015
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu String Parsing finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!