View and adjust 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
newLanguage— Action language used by Stateflow
Action language used by Stateflow, specified as
newSetting— Option for Stateflow automatic C construct correction
Option for Stateflow automatic C construct correction while using MATLAB as the action language, specified as
When you change the action language of a chart from C to MATLAB, the
newSetting value does not affect syntax
newDirectory— Directory for Stateflow custom patterns
Directory for Stateflow custom patterns created by the Pattern Wizard, specified as a character array.