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.
To adjust the spacing between the latitude and longitude lines of your grid, set the MLineLocation (Meridians) and PLineLocation (Parallels) properties of your grid appropriately. You may use the following code:
gridm('on');
gridm('mlinelocation',2,'plinelocation',2)
to set a spacing of 2 degrees each between the meridians and parallels respectively.
Best Answer