Text file row-column formatting
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I have this text file, It contains 3 columns. I want to remove all those rows whose third column element is 0...
So, how to do it..?
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 4 Dez. 2012
Bearbeitet: Walter Roberson
am 4 Dez. 2012
YourData = load('3d.txt');
YourData(YourData(:,3) == 0, :) = [];
save('New3d.txt', 'YourData', '-ascii');
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Characters and Strings finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!