Main Content

unloadPackage

Class: coder.Dictionary
Namespace: coder

Unload package of code definitions from Embedded Coder Dictionary

Syntax

unloadPackage(coderDictionaryObj,pkgName)

Description

unloadPackage(coderDictionaryObj,pkgName) unloads the code definitions in the package pkgName from the Embedded Coder Dictionary that coderDictionaryObj represents.

Input Arguments

expand all

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

Package of code definitions to unload from the Embedded Coder Dictionary.

Example: 'Simulink'

Example: 'mpt'

Examples

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.

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

Unload the package Simulink from the dictionary. The definitions are not available for configuring model elements.

unloadPackage(coderDictObj,'Simulink')

Version History

Introduced in R2019b

See Also