An efficient way to import data containing letters and numbers?
Mostrar comentarios más antiguos
Hello,
I am trying to generate some netcdf files with data sets containing numerical values along with data flags represented by numbers. Here is what some data looks like:
01108431895 487X 445X 599X 662X 726X
01108431896 484X 535X 568X 702E 778X
01108431897 465X 563X 666X 657X 701X
01108431898 531E 514E 634E 614E 752E
Is there any way to import this data and use it to create 3-d arrays so it looks exactly the way it does above, with the letter flags?
Thanks, Dan
6 comentarios
Dan
el 20 de En. de 2012
Image Analyst
el 20 de En. de 2012
Do you want things like 487X as a single string, or as a number and a string?
Walter Roberson
el 20 de En. de 2012
Is the last character of each bit of data always a flag?
Dan
el 20 de En. de 2012
Image Analyst
el 20 de En. de 2012
Your subject says you're trying to import data, but your body says you're trying to generate a netcdf file. Which is it? Read in or write out?
By the way, there is a netcdf listing in the help you know, with all kinds of things you can do with netcdf files.
Dan
el 20 de En. de 2012
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre NetCDF 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!