An efficient way to import data containing letters and numbers?
Show older comments
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 Comments
Dan
on 20 Jan 2012
Image Analyst
on 20 Jan 2012
Do you want things like 487X as a single string, or as a number and a string?
Walter Roberson
on 20 Jan 2012
Is the last character of each bit of data always a flag?
Dan
on 20 Jan 2012
Image Analyst
on 20 Jan 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
on 20 Jan 2012
Accepted Answer
More Answers (0)
Categories
Find more on NetCDF in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!