Project regular data grid on
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
meshm(Z,R,gratsize) displays a regular data grid warped to a graticule
mesh defined by the 1-by-2 vector
indicates the number of lines of constant latitude (parallels) in the graticule, and
gratsize(2) indicates the number of lines of constant longitude
meshm(Z,R,gratsize,alt) displays the regular surface map at the altitude
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
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
of the surface, then the projection of this object cannot be altered once displayed.)
H = meshm(___) returns the handle to the surface
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
load korea5c worldmap(korea5c,korea5cR) meshm(korea5c,korea5cR) demcmap(korea5c)
Version HistoryIntroduced before R2006a
meshm will not accept referencing vectors or referencing matrices as input
meshm function will not accept referencing vectors or
referencing matrices as input in a future release. Use a geographic raster reference object,
specified as a
GeographicPostingsReference object, as input instead. Reference objects have
several advantages over referencing vectors and referencing matrices.
Unlike referencing vectors and referencing matrices, reference objects have properties that document the size of the associated raster, its geographic limits, and the direction of its rows and columns.
You can manipulate the limits of geographic rasters associated with reference objects using the
You can manipulate the size and resolution of geographic rasters associated with reference objects using the
To update your code, create a geographic reference object.
Create a geographic reference object for a raster of cells by using the
Create a geographic reference object for a raster of regularly posted samples by using the
Convert from a referencing vector to a geographic reference object by using the
Convert from a referencing matrix to a geographic reference object by using the
Once you have created a reference object, replace uses of the referencing vector or referencing matrix in your code with the reference object.