Main Content
gradient
Syntax
Description
returns a matrix of values in a subregion of the map layer, grad
= gradient(map
,cornerLocation
,mapSize
)map
. The
subregion starts in the corner location cornerLocation
in the world
coordinate frame with a given map size mapSize
.
returns a matrix of distances in a subregion of the map layer, grad
= gradient(map
,cornerLocation
,mapSize
,frame
)map
.
The subregion starts in the corner location cornerLocation
in the
coordinate frame frame
with a given map size
mapSize
.
Note
When the cornerLoc
and mapSize
are
specified, gradient
computes gradients at cell centers within the
rectangular query region.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2023a