Text file row-column formatting
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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 commentaires
Réponse acceptée
Walter Roberson
le 4 Déc 2012
Modifié(e) : Walter Roberson
le 4 Déc 2012
YourData = load('3d.txt');
YourData(YourData(:,3) == 0, :) = [];
save('New3d.txt', 'YourData', '-ascii');
2 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Characters and Strings dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!