Documentation Center    • Trials   • Product Updates   Copy
graphics objects and their descendants   new_handle =
copyobj(h,p)   copyobj creates copies of graphics objects. The
copies are identical to the original objects except the copies
have different values for their Parent property and a new
handle. The new parent must be appropriate for the copied object
(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 by h 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.   Copy a
surface to a new axes within a different figure.  h =
surf(peaks); colormap hot figure                  % Create a new
figure axes                    % Create an axes object in the
figure new_handle = copyobj(h,gca); colormap hot grid on  Note
that while the surface is copied, the colormap (figure
property), view, and grid (axes properties) are not copied.
More About  expand al