Contenuto principale

copy

R2026b

Create deep copy of kinematic model object

Description

motionModelCopy = copy(motionModel) creates a deep copy of the kinematic model object with the same properties. The copy has a different object handle than the original.

Input Arguments

collapse all

The kinematic motion model object to copy, specified as an ackermannKinematics, bicycleKinematics, differentialDriveKinematics, unicycleKinematics, or articulatedSteeringKinematics object.

Output Arguments

collapse all

Copied kinematic motion model object, returned as an ackermannKinematics, bicycleKinematics, differentialDriveKinematics, unicycleKinematics, or articulatedSteeringKinematics object. The properties are the same as the input object, motionModel, but the copy has a different object handle.

Extended Capabilities

expand all

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

Version History

Introduced in R2019b

expand all