23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2copyobj<br />

Purpose Copy graphics objects and their descendants<br />

Syntax new_handle = copyobj(h,p)<br />

copyobj<br />

Description copyobj creates copies of graphics objects. The copies are identical to the<br />

original objects except the copies have different values for their Parent<br />

property and a new handle. The new parent must be appropriate for the copied<br />

object (e.g., you can copy a line object only to another axes object).<br />

new_handle = copyobj(h,p) copies one or more graphics objects identified by<br />

h and returns the handle of the new object or a vector of handles to new objects.<br />

The new graphics objects are children of the graphics objects specified by p.<br />

Remarks h and p can be scalars or vectors. When both are vectors, they must be the same<br />

length and the output argument, new_handle, is a vector of the same length.<br />

In this case, new_handle(i) is a copy of h(i) with its Parent property set to<br />

p(i).<br />

When h is a scalar and p is a vector, h is copied once to each of the parents in p.<br />

Each new_handle(i) is a copy of h with its Parent property set to p(i), and<br />

length(new_handle) equals length(p).<br />

When h is a vector and p is a scalar, each new_handle(i) is a copy of h(i) with<br />

its Parent property set to p. The length of new_handle equals length(h).<br />

Graphics objects are arranged as a hierarchy. Here, each graphics object is<br />

shown connected below its appropriate parent object.<br />

Root<br />

Figure<br />

Axes Uicontrol<br />

Image<br />

Uimenu<br />

Uicontextmenu<br />

Light Line<br />

Patch Rectangle<br />

Surface<br />

Text<br />

2-337

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

Saved successfully!

Ooh no, something went wrong!