% Pratap, p 119, input/output
% usinf fopen etc.
F=-40:5:100;
C=(F-32)*5/9;
t=[F;C];
fid=fopen('Temperature.table','w'); % 'w' means write
fprintf(fid,'  Temperature Table\n ');
fprintf(fid,' ~~~~~~~~~~~~~~~~~ \n');
fprintf(fid,'Fahrenheit    Celsius \n');
fprintf(fid,'   %4i      %8.2f\n',t);
fclose(fid);