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!