MATLAB: How to increase the resolution of latitude longitude gird ??

gridmappingMapping Toolbox

hello
i have plot india's map using 'worldmap' … i am geting latitude longitude grid with 10 lat/long spacing. Please let me know how can i get the 1 degree spacing of latitude and longitude????
thanks in advance….

Best Answer

To change the default meridian and parallel spacing after creating a map axes with worldmap, set the MLineLocation and PLineLocation properties using setm. The following sets the spacing to 1 degree:
setm(gca,'MLineLocation',1,'PLineLocation',1)
Use doc('axesm') to bring up the axesm reference page and learn more about these and other map axes properties.