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
![Figure contains an axes object. The axes object with xlabel X [meters], ylabel Y [meters] contains 2 objects of type image, quiver.](../../examples/nav/win64/CalculateGradientsUsingSignedDistanceMapExample_01.png)