How to export data to excel
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Javier Martinez
am 1 Jul. 2016
Bearbeitet: Javier Martinez
am 1 Jul. 2016
How can I export data to Excel, if I have the following .txt file, separated with commas.
HTSGW, [m], 197901010000, 197901010000, 0.000 HTSGW, [m], 197901010000, 197901010300, 0.220 HTSGW, [m], 197901010000, 197901010600, 0.420 HTSGW, [m], 197901010000, 197901010900, 0.560 HTSGW, [m], 197901010000, 197901011200, 2.190
1 Kommentar
Akzeptierte Antwort
Andrei Bobrov
am 1 Jul. 2016
f = fopen('yourtextfile.txt');
c = textscan(f,'%s %s %s %s %s','delimiter',',');
fclose(f);
xlswrite('nameyourxlsxfile.xlsx',[c{:}])
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spreadsheets 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!