fid = fopen('subjext.dat');

if fid == -1
   disp('bad open')
else
   while ~feof(fid)
      aline = fgetl(fid);
      [num, charcode] = strtok(aline);
      fprintf('%.2f %s\n', str2num(num), charcode);
   end

   closeresult = fclose(fid);
   if closeresult ~= 0
      disp('bad close');
   end
end

