Borrar filtros
Borrar filtros

Adding India boundary to a figure

3 visualizaciones (últimos 30 días)
praveen rai
praveen rai el 5 de Jul. de 2018
Comentada: Ankit Singh el 30 de Jun. de 2019
Hi,
h = figure;
set(h, 'Color','w')
imagesc(X,Y,wet'); set(gca,'YDir','normal'); set(gca,'YDir','normal');
%hold on, plot(long,lat); set(gca,'YDir','normal')
set(gca,'FontSize', 12, 'FontWeight','bold')
title('WET SEASON','FontSize', 12, 'FontWeight','bold')
h = colorbar; set(h,'FontSize', 12, 'FontWeight','bold')
mymap = [1 0.8 1; 0.7 1 1; 0.9 1 0.5; 0.6 0.7 0];
caxis([0 360]); colormap(mymap)
I want to add India boundary to this figure for which I have a shapefile. I have tried using shaperead and geoshow but it's not working and I am really got stuck into it. Any help will be highly appreciated. Thanks Praveen
  8 comentarios
jonas
jonas el 7 de Jul. de 2018
Nice! Happy to help
Ankit Singh
Ankit Singh el 30 de Jun. de 2019
Thanks..
It works now.

Iniciar sesión para comentar.

Respuesta aceptada

Chad Greene
Chad Greene el 14 de Ag. de 2018
Alternatively, if you don't have Matlab's Mapping Toolbox you can use my borders function.
  2 comentarios
praveen rai
praveen rai el 14 de Ag. de 2018
I have tried that border function Chad...it has also served my purpose. Just a small query... I want to calculate significant trend using Mann-kendall on a 3-dimensionsl data which contains lat, lon and Julian days value at each grid. Can you please help me in solving this?
Many thanks
Chad Greene
Chad Greene el 14 de Ag. de 2018
Hi Praveen, That's a somewhat involved task I don't have a tidy solution for. I recommend starting a new question with some sample data and maybe someone on the forum can help.

Iniciar sesión para comentar.

Más respuestas (0)

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by