Problem with importdata while retrieving string from txt file.
1 vue (au cours des 30 derniers jours)
Afficher commentaires plus anciens
%My txt file is trial.txt;
p100 4163603.622 441621.461 1149.353
p101 4163595.878 441621.927 1151.896
p102 4163598.903 441621.752 1150.876
[FileName1,PathName] = uigetfile('*.txt','Select the txt file')
[num,txt1,raw] = importdata(FileName1)
%In this case I need to retrieve num, txt1 and raw but it gives failure because of strings value.
%How can I retrieve and seperate num, txt1 and raw data from trial.txt?
2 commentaires
Azzi Abdelmalek
le 2 Fév 2014
Modifié(e) : Azzi Abdelmalek
le 2 Fév 2014
what is the difference between num and raw data?
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur String Parsing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!