findNearest
Find lane information nearest to specified timestamps in lane data object
Since R2023a
Syntax
Description
finds the lane information nearest to the specified timestamps
data
= findNearest(lanedata
,timestamps
)timestamps
in the laneData
object
lanedata
.
finds the lane information nearest to and less than the specified timestamps
data
= findNearest(lanedata
,timestamps
,"lessThanEqual")timestamps
.
finds the lane information nearest and greater than the specified timestamps
data
= findNearest(lanedata
,timestamps
,"greaterThanEqual")timestamps
.
specifies whether to sort the lanes in the output table data
= findNearest(___,SortLanes=sortLanes
)data
.
Note
This function requires the Scenario Builder for Automated Driving Toolbox™ support package. You can install the Scenario Builder for Automated Driving Toolbox support package from the Add-On Explorer. For more information about installing add-ons, see Get and Manage Add-Ons.