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.

gcoPurpose2gcoReturn handle of current objectSyntaxDescriptionh = gcoh = gco(figure_handle)h = gco returns the handle of the current object.h = gco(figure_handle) returns the value of the current object for the figurespecified by figure_handle.RemarksThe current object is the last object clicked on, excluding uimenus. If the mouseclick did not occur over a figure child object, the figure becomes the currentobject. <strong>MATLAB</strong> stores the handle of the current object in the figure’sCurrentObject property.The CurrentObject of the CurrentFigure does not always indicate the objectwhose callback is being executed. Interruptions of callbacks by other callbackscan change the CurrentObject or even the CurrentFigure. Some callbacks,such as CreateFcn and DeleteFcn, and uimenu Callback intentionally do notupdate CurrentFigure or CurrentObject.gcbo provides the only completely reliable way to retrieve the handle to theobject whose callback is executing, at any point in the callback function,regardless of the type of callback or of any previous interruptions.Examples This statement returns the handle to the current object in figure window 2:h = gco(2)See Alsogca, gcbo, gcfThe root object description2-207

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

Saved successfully!

Ooh no, something went wrong!