Skipping characters in a data file while keeping numbers
Afficher commentaires plus anciens
I have a large database of .txt files that are giving me some problems when I try to read them in. I have looked at the official MATLAB help pages (for those who are just going to refer me to those) and I have not made too much progress. The format of the text files is below. The data that I need is in columns 2,3,6,7. I have tried using textscan and textopen to read in the whole file but only column 1 gets imported "IO" and the rest show up as [] with no data. The other problem that I foresee is removing the characters from columns 6 'N' and 7 'E' while still retaining the numbers. Any advice would be greatly appreciated, thanks!
IO, 02, 1951061018, , BEST, 0, 182N, 682E,-999
IO, 02, 1951061100, , BEST, 0, 187N, 681E,-999
IO, 02, 1951061106, , BEST, 0, 192N, 679E,-999
IO, 02, 1951061112, , BEST, 0, 197N, 676E,-999
IO, 02, 1951061118, , BEST, 0, 203N, 674E,-999
IO, 02, 1951061200, , BEST, 0, 208N, 671E,-999
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Large Files and Big Data dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!