% One argument: The .mat file that is to be decoded and viewed.. % Author: Magnus Lundstedt function viewImage(file) a=open(file); iRaw = (double(a.raw))/a.factor; iAvg = (double(a.avg)); iBase = (double(a.base))/a.factor; for i = 1:1024 myImage(:,[i]) = iBase*iRaw(:,[i])+iAvg; end colormap(gray); imagesc(reconstruct(myImage)); end