Mapping Toolbox    
defaultm

Initialize a default map projection structure

Syntax

Description

The map projection structure contains all the information needed to project and display geographic data. It normally resides in the UserData property of a map axes, but it can also be used directly to project data without display.

mstruct = defaultm creates an empty map projection structure.

mstruct = defaultm(projection) initializes the map structure for the specified map projection. projection is any valid projection string, such as 'sinusoid'.

mstruct = defaultm(mstruct) sets appropriate defaults based on existing parameter values in the map structure mstruct.

[mstruct,msg] = defaultm(...) returns the string msg, indicating any error encountered.

Examples

Create an empty map projection structure for a Mercator projection:

Now change the map origin to [0 90 0], and fill in default projection parameters accordingly:

See Also
axesm
Define map axes and set map properties
gcm
Get current map data structure
mfwdtran
Map forward transformation
minvtran
Map inverse transformation
setm
Set and modify map properties


  daspectm deg2dms, deg2dm