# geographicToDiscrete

Transform geographic to discrete coordinates

## Description

`[`

returns the indices corresponding to geographic coordinates `I`

,`J`

] = geographicToDiscrete(`R`

,`lat`

,`lon`

)`lat`

and `lon`

in geographic raster `R`

. If
`R.RasterInterpretation`

is:

`'cells'`

, then`I`

and`J`

are the row and column subscripts of the raster cells (or image pixels)`'postings'`

, then`I`

and`J`

refer to the nearest sample point (posting)

## Examples

## Input Arguments

## Output Arguments

## Version History

**Introduced in R2013b**