File Exchange

image thumbnail


version (418 KB) by Kelly Luetkemeyer
Map a region using data from a shapefile or data grid.


Updated 01 Sep 2016

View Version History

View License

Editor's Note: This file was a File Exchange Pick of the Week

WORLDDATAMAP wraps the Mapping Toolbox function WORLDMAP (version 2.1 and higher) and adds data to the map. The data may consist of vector data from shapefiles or surface data from a regular data grid. The displayed vector data depicts boundaries for regions, major lakes and rivers, locations of major cities, and if available in the shapefile, region labels.

Cite As

Kelly Luetkemeyer (2021). WORLDDATAMAP (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (9)

Steven Leung


I get the following error message when trying to use with R2015b:
Error using referenceSphere
The specified superclass 'spheroid' contains a parse error, cannot be found
on MATLAB's search path, or is shadowed by another file with the same name.

Any suggestions on what I do wrong?


Where can I find the shapefiles with the world administrative boundaries (regions, provinces)?


I like it.
If I want to have the countries filled, but all in the same color (not as in patch) how do I do that please?


there are no .shp files added?

David G

This should include all the necessary data instead of forcing the user to find the shape files. For example, trying to run the "worlddatamap cntry02.shp world" example produces an error because cntry02.shp is neither in the zip file nor in the mapping toolbox.

Henry Halladay

Need a summary of the .shp files added

paula rydel

Why not add a patch so that the user can still use worldhi, etc subroutines? This makes no sense to make the new toolbox NOT backward compatible.

Geoffrey Forden

I simply cannot understand why Mathworks has decided to significantly reduce the functionality of MATLAB, but this routine steps into the void. Nevertheless, the documentation could make it easier to find the necessary data for actually plotting the outlines of countries.

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux

Inspired: borders

Community Treasure Hunt

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

Start Hunting!