Clone Object (Copy By Value)


Clone an object

Use this function to deep copy (clone) an object

Usage

new = clone( obj );

Returns

VariableTypeDescription
newobjA new cloned object.

Copyright Imperial College London 2019