Set user preferences in Stateflow charts
actionLanguage = sfpref('ActionLanguage') returns the default
action language used by Stateflow® charts.
correctionSetting = sfpref('EnableLabelAutoCorrectionForMAL')
returns if Stateflow automatically corrects common C constructs in charts that use MATLAB® as the action language.
enables or disables automatic correction of common C constructs in Stateflow charts that use MATLAB as the action language. See Auto Correction When Using MATLAB as the Action Language.
directory = sfpref('PatternWizardCustomDir') returns the
directory for custom patterns created using the Stateflow Pattern Wizard.
Change the action language being used in new Stateflow charts to C.
Enable automatic correction of common C constructs in new Stateflow charts when using MATLAB as the action language.
Assign the directory for custom patterns created using the Stateflow Pattern Wizard to
Enables an indicator line between each transition and its associated label.
Only show indicator between each transition and its associated label if ownership is unclear.
newLanguage— Action language used by Stateflow
Action language used by Stateflow, specified as
newSetting— Enable or disable the setting
Option to enable or disable the Stateflow setting, specified as
default value for
1, and the default value for
newDirectory— Directory for Stateflow custom patterns
Directory for Stateflow custom patterns created by the Pattern Wizard, specified as a character array.