findstringline

Versión 1.0.0.0 (1,44 KB) por Mark
Function finds the lines that a given string is present in a text file.
229 Descargas
Actualizado 16 may 2012

Ver licencia

I often have to import large data sets broken into chunks within a text file. Each data chunk has a header at its beginning. To identify the lines at which I need to begin importing data, I wrote this code.

So given a data chunk header, say str = 'Event #', this code will return to you every line that the header 'str' is present within. This aids in using the function textscan to import the data chunks. I simply use the line numbers found in this function as the 'SkipLines' for the textscan function.

Citar como

Mark (2026). findstringline (https://es.mathworks.com/matlabcentral/fileexchange/36732-findstringline), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2010b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux
Etiquetas Añadir etiquetas
Agradecimientos

Inspirado por: FIND STRING IN A TEXT FILE

Versión Publicado Notas de la versión
1.0.0.0