Main Content


Class: coder.Dictionary
Namespace: coder

Refresh package definitions in Embedded Coder Dictionary

Since R2019b




refreshPackage(coderDictionaryObj) refreshes code definitions stored in packages, which you create and modify by using the Custom Storage Class Designer. You do not need to refresh code definitions that you create in the Embedded Coder Dictionary. The refreshPackage function unloads and reloads the packages that the Embedded Coder Dictionary represented by coderDictionaryObj refers to. When you change the code definitions in a package, use refreshPackage to reload the package in each Embedded Coder Dictionary that refers to the package.

Input Arguments

expand all

Embedded Coder Dictionary, specified as a coder.Dictionary object.


expand all

Open the model RollAxisAutopilot and represent the Embedded Coder Dictionary by using a coder.Dictionary object. Assign the coder.Dictionary object to the variable coderDictObj.

coderDictObj ='RollAxisAutopilot');

Refresh the packages in the Embedded Coder Dictionary. If you changed definitions in the packages, the changes now appear in the Embedded Coder Dictionary.


Version History

Introduced in R2019b