MATLAB: How to combine two text files having different columns in one file

text file

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

Best Answer

a=dlmread('a.txt');
b=dlmread('b.txt');
c=[a,b];
dlmwrite('c.txt',c);
Related Question