egoLaneIndex
Syntax
Description
[
returns the index of the lane in which the ego is traveling,
egoLaneIndices,numLanes] = egoLaneIndex(lanedata)egoLaneIndices for each timestamp in the input recorded lane boundary
data lanedata. The function also returns the total number of lanes
numLanes detected at each timestamp.
[
returns the ego travel lane indices for the specified row indices
egoLaneIndices,numLanes] = egoLaneIndex(lanedata,rowIndices)rowIndices.
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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a