Matlab, 2D matrix

1 次查看(过去 30 天)
Ahmed Osman
Ahmed Osman 2017-12-29
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.

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Grid Lines, Tick Values, and Labels 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by