Data1 [71.7 611.7 251.7 431.7] Description, all these three data are tab delimited, in the second tab I have data, which I want to alter
How to delete data from text file?
3 ビュー (過去 30 日間)
古いコメントを表示
[71.7 611.7 251.7 431.7] is tab delimited data on 14th line, second data, I want to delete 431.7, How to do it?
回答 (1 件)
Walter Roberson
2016 年 5 月 11 日
You need to read in the data, make the change, and write it out again, preferably to a different file (so that if there is a problem you do not lose the original.)
The only circumstance under which you can alter a text file "in place" is if the replacement is exactly the same size as the original.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Text Files についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!