Main Content


Project regular data grid on axesm-based map


H = meshm(___)


meshm(Z,R) will display the regular data grid Z warped to the default projection graticule. Specify R as a GeographicCellsReference object or a GeographicPostingsReference object. The RasterSize property of R must be consistent with size(Z).

meshm(Z,R,gratsize) displays a regular data grid warped to a graticule mesh defined by the 1-by-2 vector gratsize. gratsize(1) indicates the number of lines of constant latitude (parallels) in the graticule, and gratsize(2) indicates the number of lines of constant longitude (meridians).

meshm(Z,R,gratsize,alt) displays the regular surface map at the altitude specified by alt. If alt is a scalar, then the grid is drawn in the z = alt plane. If alt is a matrix, then size(alt) must equal gratsize, and the graticule mesh is drawn at the altitudes specified by alt. If the default graticule is desired, set gratsize = [].

meshm(___,param1,val1,param2,val2,...) uses optional parameter name-value pairs to control the properties of the surface object constructed by meshm. (If data is placed in the UserData property of the surface, then the projection of this object cannot be altered once displayed.)

H = meshm(___) returns the handle to the surface drawn.


Load elevation data and a geographic cells reference object for the Korean peninsula. Then, display the data on a world map. Apply a colormap appropriate for elevation data using demcmap.

load korea5c

Version History

Introduced before R2006a

expand all