function printFormat4(x,y,z) % -- Print with column width, precision control and scientific notation fprintf('\nField width, precision control and scientific notation\n'); for j=1:length(x) fprintf('%d %8.4f %13.3e %13.3e\n',j,x(j),y(j),z(j)); end