Display regular data grid as image
h = grid2image(...)
a regular data grid
Z as an image. The image is
displayed in unprojected form, with longitude as x and
latitude as y, producing considerable distortion
away from the Equator.
Z can be M-by-N or M-by-N-by-3,
and can contain
uint16 data. The grid is georeferenced to latitude-longitude
R, which can be a geographic raster reference
object, a referencing vector, or a referencing matrix.
R is a geographic raster reference object,
RasterSize property must be consistent with
RasterInterpretation must be
R is a referencing vector, it must be
a 1-by-3 with elements:
[cells/degree northern_latitude_limit western_longitude_limit]
R is a referencing matrix, it must be
3-by-2 and transform raster row and column indices to/from geographic
coordinates according to:
[lon lat] = [row col 1] * R
R is a referencing matrix, it must define
a (non-rotational, non-skewed) relationship in which each column of
the data grid falls along a meridian and each row falls along a parallel.
the specified image properties to display the map. See the
function reference page for a list of properties that can be changed.
h = grid2image(...) returns the handle
of the image object displayed.
Load elevation raster data and a geographic cells reference object. Then, display the data as an image.
load topo60c figure grid2image(topo60c,topo60cR)
Introduced before R2006a