closestPoint
Syntax
Description
finds the closest point on the reference path to each of the specified (x,y)-positionspathPoints
= closestPoint(refPath
,points
)points
.
[
optionally returns a logical vectorpathPoints
,inWindow
] = closestPoint(refPath
,points
)inWindow
, specifying whether each point for the correspondingxycoordinate inpoints
is projected within the search window..
[_] = closestPoint(
optionally accepts a nondecreasing row vectorrefPath
,points
,searchWindow
)searchWindow
, which defines the interval of the path to use to find the closest points.
Examples
Input Arguments
Output Arguments
Extended Capabilities
版本History
Introduced in R2020b