Main Content

interp

R2026b

Interpolate trajectory at specified time

Since R2026b

    Description

    Add-On Required: This feature requires the 3D Scenarios add-on.

    p = interp(traj,t) interpolates the trajectory at the specified times and returns the corresponding poses.

    Input Arguments

    collapse all

    Trajectory, specified as a groundTrajectory or airTrajectory object.

    Query time, in seconds, specified as a vector.

    If you specify a query time that is outside the time window of the trajectory, then all the properties of the corresponding pose object have a value of NaN.

    Data Types: double | duration

    Output Arguments

    collapse all

    Pose, returned as a vector of pose objects. The size of p matches the size of t.

    When you specify traj as a groundTrajectory object, the interp function calculates the pose with respect to the WGS84 ellipsoid, and does not account for terrain. To calculate the pose with respect to the terrain, specify an actor object as input to the pose function.

    Version History

    Introduced in R2026b

    See Also

    Functions

    Objects