Skip to Main Content Skip to Search
Product Documentation

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

sfnew | sfroot | stateflow

Tutorials

How To

  


Free Stateflow Interactive Kit

Learn how engineers use Stateflow to model state machines in their Simulink models.


Get free kit

Trials Available

Try the latest version of Stateflow.


Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS