Text file row-column formatting
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Walter Roberson
el 4 de Dic. de 2012
Editada: Walter Roberson
el 4 de Dic. de 2012
YourData = load('3d.txt');
YourData(YourData(:,3) == 0, :) = [];
save('New3d.txt', 'YourData', '-ascii');
2 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!