Stateflow | ![]() ![]() |
Save the current state machine (Simulink model)
Syntax
Description
The global function sfsave
saves the current model or a specified model either with the current model name or with an assigned "save as" model name.
Arguments
Returns
Example
Assume that you have a new Stateflow model. Its current default name is 'untitled'
and m
is a handle to its Machine object.
sfsave
saves the current model under the name 'untitled'
in the work directory.
sfsave('untitled')
saves the currently loaded model named untitled
under the name untitled
in the work directory.
sfsave (m.Id,'myModel')
saves the model as the model myModel
.
sfsave ('defaults')
saves the current environment default settings in the defaults file.
![]() | sfroot | sfversion | ![]() |