How I can view this .tif file?
Show older comments
I have a tif file which represents the altitude for a country, I can simply open it in Esri's ArcGIS (Arc Map), Here is the result from ArcMap:

You can see the High and Low elevations are shown by a color range. I used this code below to open this tif file in Matlab:
x = imread('DEM_30s.tif', 'tif');
imshow(x)
But I see a figure like this:

So, If anyone could tell me how I can read my tif file in Matlab with a color bar that specifies high and low elevations (like Arcmap picture above), I would be so grateful.
Note: Since the size of the file is 7 MB, I split it into the 2 part then attach here; I also upload the .tif in my google drive in this link and compressed version of it (.zip) (just one part) here in my google drive.
Thank you
8 Comments
Walter Roberson
on 13 Apr 2020
geotiffread()
BN
on 13 Apr 2020
Walter Roberson
on 13 Apr 2020
mapshow(double(X), R)
BN
on 13 Apr 2020
BN
on 13 Apr 2020
KALYAN ACHARJYA
on 13 Apr 2020
Edited: KALYAN ACHARJYA
on 13 Apr 2020
Have you tried this?
BN
on 13 Apr 2020
Accepted Answer
More Answers (0)
Categories
Find more on Color and Styling in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

