MATLAB: Closing exponential display while using fprintf

fprintf

tp(1,1)=0.000025
ac(1,1)=0.00033
formatSpec = 'dx(m) ';
formatSpec2=tp(1,1);
formatSpec2=num2str(formatSpec2)
formatSpec2_2=ac(1,1)
fprintf(fileID,'%3s %20s %30s\n',formatSpec,formatSpec2,formatSpec2_2)
%in this case doubles are written in microsoft word with exponential display, how can I close this displaying?

Best Answer

tp(1,1)=0.000025;
ac(1,1)=0.00033;
formatSpec = 'dx(m) ';
formatSpec2=tp(1,1);
formatSpec2_2=ac(1,1)
fprintf(fileID,'%3s %20f %30f\n',formatSpec,formatSpec2,formatSpec2_2)