How to read a csv which contains both string and numbers with diferrent number of delimiters at each row?
Afficher commentaires plus anciens
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 commentaires
Shane
le 16 Oct 2015
Can you give an example of two rows of data that differ in delimiters?
Kelly Kyriakou
le 16 Oct 2015
Modifié(e) : Guillaume
le 16 Oct 2015
Guillaume
le 16 Oct 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
le 16 Oct 2015
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur String Parsing dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!