function printFormat3(x,y,z) % -- Print with column width and precision control for all float types fprintf('\nField width and precision control for all float types\n'); for j=1:length(x) fprintf('%d %8.4f %11.8f %11.0f\n',j,x(j),y(j),z(j)); end