Stateflow    
sfsave

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

modelname
Optional string name of the current model to save. If no model is specified, saves the currently loaded model. Maximum size is 25 characters.
'defaults'
If the string literal 'defaults' is specified, saves the current environment default settings in the defaults file.
machine.Id
Integer property Id of the Machine object representing the machine (model) you want to save.
saveasname
Optional string model name to save current model to. If this is not specified, the specified model name is saved under its own name. Maximum size is 25 characters.

Returns

None

Example

Assume that you have a new Stateflow model. Its current default name is 'untitled' and m is a handle to its Machine object.


  sfroot sfversion