Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

sfgco

Recently selected objects in chart

Syntax

object = sfgco

Description

object = sfgco returns a handle or vector of handles to the most recently selected objects in a chart.

Output Arguments

object

Handle or vector of handles to the most recently selected objects in a chart

Empty matrixNo charts are open, or you have no edited charts.
Handle to the chart most recently clickedYou clicked in a chart, but did not select any objects.
Handle to the selected objectYou selected one object in a chart.
Vector of handles to the selected objectsYou selected multiple objects in a chart.
Vector of handles to the most recently selected objects in the most recently selected chartYou selected multiple objects in multiple charts.

Examples

Zoom in on a state after clicking it:

myState = sfgco;
% Zoom in on the selected state
myState.fitToView;

Introduced before R2006a

Was this topic helpful?