MATLAB: How to add data to an existing txt file which already contains some lines

file

How to add data to an existing txt file which already contains some lines ?

Best Answer

a=[1 2 3;4 5 6]
dlmwrite('file.txt',a,'-append','newline','pc')