borders

Version 3.1.3 (6.88 MB) by Chad Greene
Simply plot national and US state boundaries, with or without Matlab's Mapping Toolbox.
11K Downloads
Updated 20 Feb 2020

View License

* * * The functions on this page are no longer being updated. They should still work as shown in the examples here, but I am only actively maintaining the versions of these functions which are in the Climate Data Toolbox for MATLAB, which can be found here https://www.mathworks.com/matlabcentral/fileexchange/70338. * * *

This submission contains functions to plot the outlines and names of National borders and US states. Matlab's Mapping Toolbox is NOT required.

There are two functions for plotting: borders and bordersm, and they both work the same way, except that bordersm is for use with maps created using Matlab's Mapping Toolbox. Similarly, labelborders and labelbordersm place text labels within the boundaries of countries or states.

Cite As

Greene, Chad A., et al. “The Climate Data Toolbox for MATLAB.” Geochemistry, Geophysics, Geosystems, American Geophysical Union (AGU), July 2019, doi:10.1029/2019gc008392.

View more styles
MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
3.1.3

Just adding a disclaimer that this version is no longer being maintained. Get CDT instead.

3.1.2

Updated live scripts

3.1.1

Added live scripts

3.1

Fixed a bug in bordersm, which previously resulted in an error when plotting multiple countries as patch objects.

3.0

Separated borders into two functions: Now, bordersm is the function to use with Matlab's Mapping Toolbox.

1.1.0.0

Now allows plotting national or state outlines as patch objects with or without the Mapping Toolbox.

1.0.0.0