Main Content

resetToDefault

Class: coder.Dictionary
Namespace: coder

Restore Embedded Coder Dictionary to default state

Syntax

resetToDefault(coderDictionaryObj)

Description

resetToDefault(coderDictionaryObj) restores the Embedded Coder Dictionary represented by coderDictionaryObj to its default state. The default Embedded Coder Dictionary includes definitions only from the Simulink and SimulinkBuiltIn packages. resetToDefault removes custom definitions from the dictionary.

Input Arguments

expand all

Embedded Coder Dictionary specified as a coder.Dictionary object.

Examples

expand all

Open the model RollAxisAutopilot and represent the Embedded Coder Dictionary with a coder.Dictionary object. Assign the coder.Dictionary object to the variable coderDictObj. The Embedded Coder Dictionary for RollAxisAutopilot contains two example storage classes and the default storage classes.

openExample('RollAxisAutopilot')
coderDictObj = coder.dictionary.open('RollAxisAutopilot');

Reset the Embedded Coder Dictionary. Resetting the dictionary removes the example storage classes and leaves only the definitions in the Simulink and SimulinkBuiltIn packages.

resetToDefault(coderDictObj)

Version History

Introduced in R2019b