User`s guide
R14SP2
21-4
In Version 2.1, worldmap supports only the first of these actions. A call to worldmap
constructs a map axes object and can easily be followed with a variety of Mapping
Toolbox commands to display the map data of your choice. Because the usamap function
is so similar to worldmap, corresponding changes have been made there as well.
To help those who have relied heavily on worldmap and usamap to plot base maps
with automatically selected vector map data, examples throughout the User's Guide,
reference pages, and MATLAB function help entries have been updated to illustrate
the new behavior of worldmap and usamap, and to show how to create maps including
vector shapefile data layers. These examples cover a wide variety of ways to read and
subset data with shaperead and display data with geoshow and other Mapping Toolbox
display functions. A good place to start is with the examples for the worldmap and
usamap functions. Also see example code in .
To help you update commands, scripts, and data for constructing and maintaining base
maps, a recently published technical note on the MathWorks Web site provides links to
data and documentation for many sources of vector and raster digital map data that you
can access over the Internet:
http://www.mathworks.com/support/tech-notes/2100/2101.html
Changes to worldmap and usamap
worldmap and usamap have been simplified to construct appropriate map axes for a
given area without displaying any map data.
In all cases, map frames, latitude-longitude grid lines, meridian labels, and parallel
labels are turned on. You can use the following command sequence to remove them:
framem off; gridm off; mlabel off; plabel off
Other changes include the following:
• usamap now accepts two-letter U.S. Postal Service abbreviations for state names (e.g.,
AL, AK, AR, etc.).
Compatibility Considerations
• The following input options are now obsolete (if used, a warning is issued):
• A first argument equal to 'lo' or 'hi'