How to use load command and omit header lines
Mostrar comentarios más antiguos
Hi, I am trying to use the 'load' command to read data from text files and do subsequent operations. These files have a header line, which I manually remove by editing the file. Is there a way to leave the first line with header data and load the remainder of the file. Thanks. Deep
Respuestas (1)
Walter Roberson
el 18 de Feb. de 2013
0 votos
If I recall correctl, load() can handle header lines that start with the MATLAB comment character, but not otherwise.
See uiimport() or textscan()
Categorías
Más información sobre Text Files 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!