object = gcoobject = gco(figure)
object = gco returns the handle of the current object in the current figure. The current object is the last object clicked on with the mouse.
object = gco(figure) returns the handle of the current object in the figure specified by the handle figure.
gca,gcf
(c) Copyright 1994 by The MathWorks, Inc.