How can I combine two text files having different columns in one file?
Ältere Kommentare anzeigen
I have two text files need to be combined to one.
a.txt b.txt
1 2 4
4 3 6
i need like this
c.txt
1 2 4
4 3 6
Akzeptierte Antwort
Weitere Antworten (1)
dpb
am 19 Jun. 2015
c=[textread('a.txt') textread('b.txt')];
2 Kommentare
Similarly to dpb's answer you can also use load:
>> c = [load('a.txt'),load('b.txt')];
Kategorien
Mehr zu Text Files finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!