Main Content

position

Return xy-position at arclength

    Description

    pos = position(refPath,S) calculates the xy-position pos of the reference path refPath at the specified arclength, S.

    Input Arguments

    collapse all

    Reference path, specified as a referencePathFrenet object.

    Path arclengths, specified as an N-element column vector in meters, where N is the total number of desired arclengths to calculate.

    Output Arguments

    collapse all

    xy-position, returned as N-by-2 matrix, where N is the total number of specified arclengths. Each row is of the form [x y], containing the xy-positions for an arclength.

    Version History

    Introduced in R2022a