Main Content

clone

Create identical object

Description

object_clone = clone(original_object) creates a copy, object_clone, of the input object, original_object, with identical property values.

Input Arguments

collapse all

Object to be cloned.

Output Arguments

collapse all

Object clone, returned as an object of the same class as original_object.

Extended Capabilities

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

Introduced in R2019a