This MATLAB function applies the formatSpec to all elements of arrays A1,...An in column order, and writes the data to a text file.
www.mathworks.com