Main Content


Zoom in on Stateflow chart



zoomIn(editor) increases the magnification level of the Stateflow.Editor object editor for a chart.


collapse all

Increase the magnification level of a nonempty chart ch.

ed = ch.Editor;

If the magnification level for the chart was initially 100%, this command increases it to 130%.

Input Arguments

collapse all

Editor for a chart, specified as a Stateflow.Editor object. The Stateflow.Editor object provides access to the graphical aspects of a chart. For example, to access the Stateflow.Editor object for a Stateflow.Chart object ch, enter:

ed = ch.Editor;


The zoomIn function modifies the ZoomFactor property of the Stateflow.Editor object. The property is limited to a minimum of 0.5 and a maximum of 10. zoomIn multiplies ZoomFactor by a factor of 1.3 as long as the resulting value is in this range. Otherwise, zoomIn sets ZoomFactor to the maximum value of 10.

Version History

Introduced before R2006a