This is one way:
x = randi(10,13,2); % Create Data
fprintf(1, ' Col#1 Col#2\n') % Column Titles
fprintf(1, '\t\t%2d\t\t%2d\n', x') % Write Rows
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!