coder.Dictionary.getLoadedPackages - Return code definition packages loaded into Embedded Coder Dictionary - MATLAB (original) (raw)
Main Content
Class: coder.Dictionary
Namespace: coder
Return code definition packages loaded into Embedded Coder Dictionary
Since R2024a
Syntax
packages = getLoadedPackages(coderDictionaryObj)
Description
[packages](#mw%5Fddc89b8e-89c5-46f7-b61c-9c72ac01d935) = getLoadedPackages([coderDictionaryObj](#mw%5Fbe196781-6a2b-4d17-9696-638703f6c8a2))
lists packages loaded into the Embedded Coder Dictionary thatcoderDictionaryObj
represents.
Input Arguments
Output Arguments
Packages loaded into the Embedded Coder Dictionary, returned as an array of strings.
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')
List the packages loaded into the Embedded Coder Dictionary.
getLoadedPackages(coderDictObj)
ans =
1×2 string array
"Simulink" "mpt"
Version History
Introduced in R2024a