using textscan to load numbers from txt file
Afficher commentaires plus anciens
I am using textscan
tmp = textscan(fid,'%4f %q %f %f %f %f %f %f %f %f','treatAsEmpty', 'n/a');
to load data which looks like (skipping few columns)
1950 "Afghanistan" 8150.368
I get the year and the country without problems, but the third number is instead loaded as 0.8150...
I tried using something like %6.3f for the format input, but that just returns some dimension mismatch.
What am i doing wrong ?
2 commentaires
Azzi Abdelmalek
le 1 Jan 2013
can you post a sample of your data (3 lines)
DoVile Last Name:
le 1 Jan 2013
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Whos dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!