sfsave - Save the Stateflow machine in the current directory

Syntax

sfsave
sfsave( Model_Handle )
sfsave( Model_Handle, 'New_Model_Name' )
sfsave( Machine_Handle )
sfsave( 'Model_Name' )
sfsave( 'Defaults' )

Arguments

Model_Handle

Handle to a Simulink model that contains a Stateflow block

'New_Model_Name'

Name to assign to the model being saved

Machine_Handle

Handle to a Stateflow machine

'Model_Name'

Name of a Simulink model that contains a Stateflow block

'Defaults'

Literal string used to save current settings as defaults

Description

sfsave saves the current Stateflow machine in the current directory.

sfsave( Model_Handle ) saves the Simulink model specified by Model_Handle in the current directory.

sfsave( Model_Handle, 'New_Model_Name' ) saves the Simulink model specified by Model_Handle as New_Model_Name in the current directory.

sfsave( Machine_Handle ) saves the Simulink model that contains the Stateflow machine specified by Machine_Handle in the current directory.

sfsave( 'Model_Name' ) saves the Simulink model called Model_Name in the current directory.

sfsave( 'Defaults' ) saves the settings of the current Stateflow machine as defaults.

Examples

Save the model whose handle is m as MyModel in the current directory.

sfsave(m, 'MyModel')

Save the model that contains a Stateflow machine whose handle is sf in the current directory.

sfsave(sf)

See Also

sfclose, sfnew, sfopen, sfprint

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS