View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

2.8 | 6 ratings Rate this file 39 Downloads (last 30 days) File Size: 418 KB File ID: #7550 Version:
image thumbnail




28 Apr 2005 (Updated )

Map a region using data from a shapefile or data grid.

Editor's Notes:

This file was a File Exchange Pick of the Week

| Watch this File

File Information

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.


This file inspired Borders.

Required Products Mapping Toolbox
MATLAB release MATLAB 7.0.1 (R14SP1)
Other requirements Mapping Toolbox version 2.1 or higher
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (8)
14 Sep 2015 Fredrik

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?

Comment only
16 Oct 2012 Dan

Dan (view profile)

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

10 Jun 2010 Lindsey

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?

31 May 2010 Berend

Berend (view profile)

there are no .shp files added?

Comment only
21 Feb 2008 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.

21 Jun 2007 Henry Halladay

Need a summary of the .shp files added

16 Jan 2007 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.

09 Dec 2005 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.

28 Sep 2010 1.1

Updated to BSD license

01 Sep 2016

Updated license

Contact us