isDictionaryDefault
Class: coder.dictionary.Entry
Namespace: coder.dictionary
Syntax
tf = isDictionaryDefault(entryObj)
Description
returns tf
= isDictionaryDefault(entryObj
)true
if the entry is the default code definition for its
category.
Input Arguments
entryObj
— Embedded Coder Dictionary entry
coder.dictionary.Entry
object
Embedded Coder Dictionary entry, specified as a
coder.dictionary.Entry
object.
Output Arguments
tf
— True or false result
1
| 0
| logical array
True or false result, returned as a 1
or 0
of
data type logical
.
Examples
Check if Entry Object Is Default Measurement Interface
Create a Simulink data dictionary that contains an Embedded Coder Dictionary. Create the Embedded Coder Dictionary so that it represents a service interface configuration.
dictionaryFile = Simulink.data.dictionary.create('codeDefinitions.sldd'); codeDictionary = coder.dictionary.create('codeDefinitions.sldd','ServiceInterface');
Create a coder.dictionary.Section
object that represents the
Measurement Interfaces section of the Embedded Coder
Dictionary.
measSect = getSection(codeDictionary, 'MeasurementInterfaces');
Get the coder.dictionary.Entry
objects that represent the
definitions in the Measurement Interfaces section. For this
example, there is one measurement interface entry.
entries = find(measSect)
entries = Entry with properties: Name: 'MeasurementExample1' DataSource: 'C:\work\codeDefinitions.sldd' StorageClass: 'MeasurementStruct'
Determine if the entry MeasurementExample1
is the default
measurement interface for the dictionary.
tf = isDictionaryDefault(entries)
tf = logical 1
For this example, the measurement interface entry is the default code definition for measurement interfaces.
Version History
Introduced in R2023b
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)