Documentation Center

  • Trials
  • Product Updates

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;

See Also

| |

Tutorials

Was this topic helpful?