import data from txt file with strings
Mostra commenti meno recenti
%I have a txt file contains both double and string characters.
% a.txt=
1 100 150
2 110 130
p.2 122 144 %for example
%I wanna retrieve all data from this txt file, I use importdata(a) then only doubles can be read.
v=importdata(a)
v=
1 100 150
2 110 130
%p.2 doesn't look in v. How can I retrieve all data from txt file?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su String Parsing in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!