23.11.2012 Views

Mapping

Mapping

Mapping

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Getting started with the M_map MATLAB Toolbox<br />

Finally, suppose you want to show and label the location of,<br />

say, a mooring at 129W, 48 30'N.<br />

[X,Y]=m_ll2xy(-129,48.5);<br />

line(X,Y,'marker','square','markersize',4,'color','r');<br />

text(X,Y,' M5','vertical','top');<br />

m_ll2xy (and its inverse m_xy2ll) convert from<br />

longitude/latitude coordinates to those of the projection.<br />

Various clipping options can also be specified in converting to<br />

projection coordinates.<br />

If you are willing to accept default clipping setting, you can<br />

use the built-in functions m_line and m_text :<br />

m_line(-129,48.5,'marker','square','markersize',4,'color','r');<br />

m_text(-129,48.5,' M5','vertical','top');<br />

52 o N<br />

136 o W<br />

48 o N<br />

44 o N<br />

132 o W<br />

40 o N<br />

128 o W<br />

56 o N<br />

M5<br />

124 o W<br />

120 o W

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!