function printFormat2(x,y,z) % -- Print with equal precision control for all float types fprintf('\nEqual precision control for all float types\n'); for j=1:length(x) fprintf('%d %.2f %.2f %.2f\n',j,x(j),y(j),z(j)); end