Parsing a text file
이전 댓글 표시
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
madhan ravi
2019년 1월 23일
편집: madhan ravi
2019년 1월 23일
upload your file and which version of matlab are you using?
Constantin milea
2019년 1월 23일
madhan ravi
2019년 1월 23일
try reading the file using readtable()
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!