Using textread and strfind to extract lines of data
Mostrar comentarios más antiguos
I have used textread to load a data file into memory. From here, I want to extract specific lines that contain a particular string. I imagine I can do this with strfind, but the documentation indicates it will only return the start index of the string. How can I extract the whole line of data?
1 comentario
Jonathan Epperl
el 27 de Nov. de 2012
You probably used textread to load data into a variable, and if you didn't, then you should do so. Also you should give some more detail: What does your data look like, what do you mean by 'line', is your data separated by line breaks?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Text Data Preparation en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!