set
Class: coder.dictionary.Entry
Namespace: coder.dictionary
Syntax
set(entryObj,Name1,Value1,...,NameN,ValueN)
Description
set(
sets the properties to the specified values for the Embedded Coder Dictionary definition that
entryObj
,Name1,Value1,...,NameN,ValueN
)entryObj
represents.
Input Arguments
entryObj
— Embedded Coder Dictionary entry
coder.dictionary.Entry
object
Embedded Coder Dictionary entry that represents the code definition, specified as a
coder.dictionary.Entry
object. Before you use this function, represent the
code definition by using a coder.dictionary.Entry
object. Use, for
example, the addEntry
function.
Name1,Value1,...,NameN,ValueN
— Property specifications
name-value pairs representing properties and values
Property specifications for the definition, specified as one or more name-value
pairs representing names and values of properties of the code definition. For a list of
the properties of an Embedded Coder Dictionary definition, see coder.dictionary.Entry
.
Example: 'MemorySection','memSect1'
Example: 'DataScope','Exported'
Examples
Set Property Value of Storage Class Definition
Open the model RollAxisAutopilot
and represent the Embedded Coder
Dictionary by using a coder.Dictionary
object. Use this object to
access the Storage Classes section of the dictionary and represent the section by using
a coder.dictionary.Section
object.
openExample('RollAxisAutopilot') coderDictionary = coder.dictionary.open('RollAxisAutopilot'); storageClassesSect = getSection(coderDictionary, 'StorageClasses');
Represent the example storage class ParamStruct
by using a
coder.dictionary.Entry
object.
entryObj = getEntry(storageClassesSect,'ParamStruct');
Change the value of the HeaderFile
property of the storage class
definition from $N.h
to $N_params.h
.
set(entryObj,'HeaderFile','$N_params.h')
Version History
Introduced in R2019b
Comando de MATLAB
Ha hecho clic en un enlace que corresponde a este comando de MATLAB:
Ejecute el comando introduciéndolo en la ventana de comandos de MATLAB. Los navegadores web no admiten comandos de MATLAB.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)