Copy array of handle objects
B = copy(A)
B = copy( copies each element in the array of
A to a new array of handles
copy method follows these rules:
copymethod does not copy dependent properties.
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 size and number of elements as
Bis the same class as
Bis also empty.
Bis also heterogeneous.
Acontains deleted handle objects,
copycreates deleted handles of the same class in
Dynamic properties and listeners associated with objects in
Aare not copied to objects in
A — Handle object array to be copied
handle object array
Handle object array to be copied.
To learn about attributes of methods, see Method Attributes.
For an example of the use of
copy, see Implement Copy for Handle Classes.
Introduced in R2011a