Main Content

resetToDefault

Class: coder.Dictionary
Package: 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 rtwdemo_roll 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 rtwdemo_roll contains two example storage classes and the default storage classes.

rtwdemo_roll
coderDictObj = coder.dictionary.open('rtwdemo_roll');

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)
Introduced in R2019b