How can I combine two text files having different columns in one file?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
dpb
el 19 de Jun. de 2015
c=[textread('a.txt') textread('b.txt')];
2 comentarios
Similarly to dpb's answer you can also use load:
>> c = [load('a.txt'),load('b.txt')];
Categorías
Más información sobre Text Files en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!