How to read an plot with coordinates a .tiff file?
15 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Philippe Corner
il 20 Gen 2020
Risposto: Walter Roberson
il 4 Feb 2020
I'm currently using this code:
[X,map]= imread('Z1.tiff');
image(X);
colormap(map);
This is the file im trying to read: http://www.mediafire.com/view/dzifgp0s3ima3z2/Z1.tiff/file
And this is the plot im trying to obtain:
![Screen Shot 2020-01-19 at 7.55.09 PM.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/262538/Screen%20Shot%202020-01-19%20at%207.55.09%20PM.png)
Any idea why my code is not working?
2 Commenti
Risposta accettata
Walter Roberson
il 4 Feb 2020
[X, R] = geotiffread('Z1.tiff');
mapshow(X(:,:,1:3), R)
%touch up the labeling
ax = gca;
ax.XAxis.Exponent = 0;
ax.YAxis.Exponent = 0;
0 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su 2-D and 3-D Plots in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!