Parsing a text file
Ältere Kommentare anzeigen
Hello .I have the following question :I am reading a text file using the usual
textread(filename,'%s%s%s%f%f%d','delimiter',',').Sometimes though the file is corrupted and instead of a number as expected ,in one of the fields ,there is an INF .
How do I change the program so I can simply avoid these lines completely ?
Many thanks,
Constantin
3 Kommentare
madhan ravi
am 23 Jan. 2019
Bearbeitet: madhan ravi
am 23 Jan. 2019
upload your file and which version of matlab are you using?
Constantin milea
am 23 Jan. 2019
madhan ravi
am 23 Jan. 2019
try reading the file using readtable()
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu App Building 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!