12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

copyobjPurpose2copyobjCopy graphics objects and their descendantsSyntaxDescriptionnew_handle = copyobj(h,p)copyobj creates copies of graphics objects. The copies are identical to theoriginal objects except the copies have different values for their Parentproperty and a new handle. The new parent must be appropriate for the copiedobject (e.g., you can copy a line object only to another axes object).new_handle = copyobj(h,p) copies one or more graphics objects identified byh and returns the handle of the new object or a vector of handles to new objects.The new graphics objects are children of the graphics objects specified by p.Remarksh and p can be scalars or vectors. When both are vectors, they must be the samelength and the output argument, new_handle, is a vector of the same length.In this case, new_handle(i) is a copy of h(i) with its Parent property set top(i).When h is a scalar and p is a vector, h is copied once to each of the parents in p.Each new_handle(i) is a copy of h with its Parent property set to p(i), andlength(new_handle) equals length(p).When h is a vector and p is a scalar, each new_handle(i) is a copy of h(i) withits Parent property set to p. The length of new_handle equals length(h).<strong>Graphics</strong> objects are arranged as a hierarchy. Here, each graphics object isshown connected below its appropriate parent object.RootFigureAxesUicontrolUimenuUicontextmenuImageLightLinePatchRectangleSurfaceText2-114

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!