Main Content

append

Add states to end of path

Since R2021b

Description

append(pathObj,states,controls,targets,durations) adds a sequence of states states, controls controls, targets targets, and durations durations, to the end of the path. If the path is empty, the states input must have one more row than the other input vectors and matrices. If the path contains points already, the function applies the first control to the last state in the current path.

Input Arguments

collapse all

Control path, specified as a navPathControl object.

Data Types: double

Series of states for the path, specified as an n-by-m matrix. n is the number of points to add to the path. m is the dimension of the state vector.

Note

If the path object is empty, the states input should be an (n+1)-by-m matrix.

Data Types: double

Control input for each state, specified as an n-by-m matrix. n is the number of points to add to the path. m is the dimension of the state vector.

Data Types: double

Target state for each state in the path,specified as an n-by-m matrix. n is the number of points to add to the path. m is the dimension of the state vector.

Data Types: double

Duration of each control input, specified as an n-element vector in seconds. n is the number of points to add to the path.

Data Types: double

Version History

Introduced in R2021b