Copy array of handle objects
B = copy(A)
B = copy(A) copies each element in the
array of handles
A to the new array of handles
copy method performs a copy according
to the following rules:
copymethod does not copy
MATLAB® does not call the
copymethod recursively on any handles contained in property values
MATLAB does not call the class constructor or property set methods during the copy operation.
Bhas the same number of elements and same size as
Bis the same class as
Bis also empty.
Bis also heterogeneous.
Acontains deleted handle objects, copy creates deleted handles of the same class in
Dynamic properties and listeners associated with objects in
Aare not copied to objects in
You can call
copyinside your class
Handle object array
Handle object array containing copies of the objects in
To learn about attributes of methods, see Method Attributes.