Documentation

loadPackage

Class:coder.Dictionary
Package:coder

Load package of code definitions into Embedded Coder Dictionary

Syntax

loadPackage(coderDictionaryObj,pkgName)

Description

loadPackage(coderDictionaryObj,pkgName)loads the code definitions in the packagepkgNameinto the Embedded Coder Dictionary thatcoderDictionaryObjrepresents.

Input Arguments

expand all

Embedded Coder Dictionary, specified as acoder.Dictionaryobject.

Package of code definitions to load into the Embedded Coder Dictionary.

Example:'Simulink'

Examples

expand all

Open the modelrtwdemo_rolland represent the Embedded Coder Dictionary by using acoder.Dictionaryobject. Assign thecoder.Dictionaryobject to the variablecoderDictObj.

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

Load the packagemptinto the Embedded Coder Dictionary. You can configure the model to use definitions from the package.

loadPackage (coderDictObj'mpt')

Introduced in R2019b