%% Export Numeric Array to Text File
% You can export a numerical array to a text file using writematrix.
% Create a numeric array A.

A = magic(5)/10 

% Write the numeric array to myData.dat and specify the delimiter to be ';'. Then, view the contents of the file.

writematrix(A,'myData.dat','Delimiter',';')  
type myData.dat

% Copyright 2012 The MathWorks, Inc.