what about:
a = [6,7];
filename = 'E:\test.txt';
fid = fopen(filename,'wt');
fprintf(fid,'%g\t%g',a);
fclose(fid)
By using %g this will leave no trailing zeros.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!