MATLAB: Scientific notation

scientific notation

i dont know why but matlab is printing out my y values in scientific notation which i do not want, how do i do that?
disp('table of degrees to radians')
disp(' degrees radians')
for i=0:1:36
x=5*i;
y=x*pi/180;
fprintf('\n %i %i',x,y);
end

Best Answer

use %g instead of %i. See doc sprintf for more info.