Main Content

copy

Create copy of path object

Description

path2 = copy(path1) creates a copy of the path object, path2, from the path object, path1.

example

Examples

collapse all

Create a navPath object.

path = navPath
path = 
  navPath with properties:

      StateSpace: [1x1 stateSpaceSE2]
          States: [0x3 double]
       NumStates: 0
    MaxNumStates: Inf

Create copy of navPath object.

pathNew = copy(path)
pathNew = 
  navPath with properties:

      StateSpace: [1x1 stateSpaceSE2]
          States: [0x3 double]
       NumStates: 0
    MaxNumStates: Inf

Input Arguments

collapse all

Path object, specified as a navPath object.

Output Arguments

collapse all

Path object, returned as a navPath object.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Version History

Introduced in R2019b

See Also

Objects

Functions