createDWorkArg
Class: RTW.TflBlockEntry
Namespace: RTW
Syntax
arg = createDWorkArg(blockEntry,type,Name1=Value1,...,NameN=ValueN)
Description
creates a handle for a DWork argument of type type that you can add to a
block replacement entry arg
= createDWorkArg(blockEntry
,type
,Name1=Value1,...,NameN=ValueN
)blockEntry
.
Input Arguments
blockEntry
— Block entry object
RTW.TflBlockEntry
object
Block entry object, specified as an RTW.TflBlockEntry
object.
type
— Data type
'Integer'
| 'Boolean'
| 'Half'
| 'Single'
| 'Double'
| 'Fixed'
| 'Complex'
| 'Matrix'
| 'Pointer'
| 'Struct'
| character vector | string scalar
Data type of the DWork argument, specified as a character vector or string scalar.
You can specify one of the supported type strings or a character vector or string that
creates a data type, such has 'fixdt(true,16,0)'
or
'int32'
.
Example: 'Pointer'
Example: 'fixdt(true,16,0)'
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN
, where Name
is
the argument name and Value
is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: Name='crlDWorkArg'
Name
— Argument name
character vector | string scalar
Argument name for the DWork vector, specified as a character vector or string scalar.
Example: Name='CRLDWork'
StructData
— Structure type information
structure
Structure type information, specified as a structure with these fields:
Identifier
— String name of the structure.Elements
— Array of elements in the structure. Each element is a structure with the fieldsType
andIdentifier
.
For example, this code creates the structure type information in the structure
ssTypeP
.
se1.Identifier = 'Coeffs'; se1.Type = 'single*'; se2.Identifier = 'InitStates'; se2.Type = 'single'; se3.Identifier = 'CoeffsSize'; se3.Type = 'uint16'; ssTypeP.Identifier = 'InitStruct'; ssTypeP.Elements = [se1, se2, se3];
Type
— Data type of the argument
character vector | string scalar
Data type of the argument, specified as a character vector or string scalar. You
can specify built-in MATLAB data types such as uint8
,
boolean
, double
, and others.
Example: Type='uint8'
BaseType
— Base data type
character vector | string scalar
Base data type of a matrix, pointer, or complex DWork vector, specified as a character vector or string scalar.
Example: BaseType='single'
Output Arguments
arg
— Handle to the created DWork argument
handle
Specifying the return argument in the createDWorkArg
function
call is optional.
Version History
Introduced in R2024a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
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)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)