How do I change the spacing of grid lines on my map in the Mapping Toolbox?

7 views (last 30 days)
I am using the PLOTM command followed by the GRIDM command to produce a grid on my map. However, I would like to alter the spacing of the grid lines such that I get latitude and longitude lines at 2 degree intervals.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
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.

More Answers (0)

Tags

No tags entered yet.

Products

Community Treasure Hunt

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

Start Hunting!