Main Content

unloadPackage

Class: coder.Dictionary
Package: 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 rtwdemo_roll and represent the Embedded Coder Dictionary by using a coder.Dictionary object. Assign the coder.Dictionary object to the variable coderDictObj.

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

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

unloadPackage(coderDictObj,'Simulink')

See Also

Introduced in R2019b