MATLAB: Fprintf end of line character

fprintfnew line character

When I use fprintf to print multiple lines of text onto a txt file, it introduces a small rectangular box at the end of each line when ever I use '\n'. How would I print without getting that box at the end of each line of text in txt file?
Thanks, Ganesh

Best Answer

fid = fopen('test.txt','w');
fprintf(fid,'%.0f\t%.0f\r\n', [1:5; 6:10]);
fid = fclose(fid);