How to import data with string, missing data,and numeric values?
9 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Danupon Subanapong
am 14 Nov. 2018
Kommentiert: madhan ravi
am 14 Nov. 2018
Hi!! I would like to ask for your help. I have to a number of import text data. Inside these text files, there are strings, numeric values, and missing data. I have been seeking for how to import these files. I tried importdata, but it only imports data from row no.1 to the missing data row. I will attach the example of input file as well. Please check it.
0 Kommentare
Akzeptierte Antwort
madhan ravi
am 14 Nov. 2018
Bearbeitet: madhan ravi
am 14 Nov. 2018
fid=fopen('Example_of_input3.txt');
f=textscan(fid,'%s', 'delimiter','\n');
fclose(fid);
celldisp(f)
4 Kommentare
madhan ravi
am 14 Nov. 2018
Anytime :) , see my previous comment just use indexing loop is not needed , search indexing cell array in internet and read slowly you will understand
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!