egoLaneIndex
Syntax
Description
Add-On Required: This feature requires the Scenario Builder for Automated Driving Toolbox add-on.
[
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.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2025a