geographicToDiscrete
Convert geographic coordinates to discrete subscripts
Description
[
calculates the discrete row and column subscripts I,J] = geographicToDiscrete(R,lat,lon)I and
J for the geographic coordinates lat
and lon based on the relationship defined by the raster
reference object R.
The interpretation of I and J depend on
the RasterInterpretation property of R.
'cells'—IandJare the row and column subscripts of the raster cells or image pixels.'postings'—IandJare the row and column subscripts of the nearest posting point sample.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2013b