Matlab, 2D matrix

I'm using Matlab and I do have a gridded data (0.5 degree) of India for drought index SPEI stored in .mat file with size (62,63), and I have plotted using imagesc() function. However, I want to display it into a map with longitude and latitude axes to be like the map attached.

Respuestas (1)

Image Analyst
Image Analyst el 30 de Dic. de 2017

0 votos

Use the 'xdata' and 'ydata' inputs to imshow() to have the tick marks be what you want. You can also use xticklabels() and yticklabels().

Categorías

Más información sobre Interactive Control and Callbacks en Centro de ayuda y File Exchange.

Productos

Preguntada:

el 29 de Dic. de 2017

Respondida:

el 30 de Dic. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by