# MATLAB: How to convert .mat file to .tif file

arcgisconvertgeotifftif

Hi all,
Is there any way to convert .mat file to .tif file? Since I had made some change in the grid cell and save as .mat file, I need to convert the .mat to .tif file for ArcGIS. However, I cannot find the effective way to convert this.
I highly appreciate your help and assistance.
Thanks, Pich

% Write the data into geotiff R = georasterref('RasterSize',size(data),'LatitudeLimits',[ymin,ymax],'LongitudeLimits',[xmin,xmax]);geotiffwrite('myfile.tif',data,R)%%Read geotiff file[A, R] = geotiffread(tiffile);figuremapshow(A, R);