read_headlines
The first character of the header file in the document is the“#”, so I choose to read each line one by one, and then match the first character with the "#" . When the match returns an 0, stop reading and return the header file content and line number.
I take the *.mom files as an example.You can follow it to do a batch processing.
#
[lines_e, headline_e] = read_headlines(folder)
Citation pour cette source
Changliang Xiong (2024). read_headlines (https://www.mathworks.com/matlabcentral/fileexchange/90985-read_headlines), MATLAB Central File Exchange. Extrait(e) le .
He X, Yu K, Montillet J P, et al. GNSS-TS-NRS: An Open-Source MATLAB-Based GNSS Time Series Noise Reduction Software[J]. Remote Sensing, 2020, 12(21): 3532.
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.0.0 |