coder.dictionary.loadPackage - Load package of code definitions into Embedded Coder Dictionary - MATLAB (original) (raw)
Main Content
Class: coder.Dictionary
Namespace: coder
Load package of code definitions into Embedded Coder Dictionary
Syntax
loadPackage(coderDictionaryObj,pkgName)
Description
loadPackage([coderDictionaryObj](#mw%5Fe3ed78e4-fd86-4fd4-85cd-02d7adfde115),[pkgName](#mw%5F3684fcc0-eb52-4d42-aa38-c20c2c39f2b7))
loads the code definitions in the package pkgName
into the Embedded Coder Dictionary that coderDictionaryObj
represents.
Input Arguments
Package of code definitions to load into the Embedded Coder Dictionary.
Example: 'Simulink'
Examples
Open the model RollAxisAutopilot
and represent the Embedded Coder Dictionary by using a coder.Dictionary
object. Assign thecoder.Dictionary
object to the variablecoderDictObj
.
openExample('RollAxisAutopilot') coderDictObj = coder.dictionary.open('RollAxisAutopilot');
Load the package mpt
into the Embedded Coder Dictionary. You can configure the model to use definitions from the package.
loadPackage(coderDictObj,'mpt')
Version History
Introduced in R2019b