Close Stateflow chart
sfclose closes the chart that was opened or modified most
recently. Closing a chart in a Simulink® model also closes the model.
sfclose all closes all open charts.
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
"My Chart" or
Close the Stateflow® chart that was opened or modified most recently.
Close all open Stateflow charts.
Close all open Stateflow charts called
Close the open Stateflow chart specified by the variable
chart = "My Chart"; sfclose(chart)
chartName— Name of chart
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
sfclose 'My Chart'