     [file, pth]=uigetfile('*.float', 'Click on .float file');
     filestring=sprintf('%s%s', pth, file);
     lstring=length(filestring);
     fid = fopen(filestring);

     [Img,cnt] = fread(fid,'float32');
     Img = reshape(Img,256,256)';
     a=min(min(Img));
     b=max(max(Img));
     theimage=(Img-a)*255/(b-a);
     theimage=uint8(round(theimage));
     figure;
     imagesc(theimage);colormap(gray);
     filestring(lstring-4:lstring-2)='bmp';
     filestring2=filestring(1:lstring-2);

		imwrite(theimage,gray(256),filestring2,'bmp');
