Main Content

sfclose

Close Stateflow chart

Description

example

sfclose closes the chart that was opened or modified most recently. Closing a chart in a Simulink® model also closes the model.

example

sfclose all closes all open charts.

example

sfclose chartName closes all open charts called chartName.

example

sfclose(___) enables you to specify the input arguments in the previous syntaxes by using variables or strings. For example, sfclose(var) where the value of var is equal to "My Chart" or "all".

Examples

collapse all

Close the Stateflow® chart that was opened or modified most recently.

sfclose

Close all open Stateflow charts.

sfclose all

Close all open Stateflow charts called MyChart.

sfclose MyChart

Close the open Stateflow chart specified by the variable chart.

chart = "My Chart";
sfclose(chart)

Input Arguments

collapse all

Name of Stateflow chart to close, specified as a chart name, character vector, or string.

If the name of the chart includes spaces, enclose the chart name in quotes.

To specify the name of the chart using a variable or a string, call sfclose with its input argument enclosed in parentheses.

Example: sfclose MyChart

Example: sfclose 'My Chart'

Example: sfclose("My Chart")

Data Types: char | string

See Also

| | |

Introduced in R2006a