coder.descriptor.types.Matrix Class
Namespace: coder.descriptor.types
Superclasses: coder.descriptor.types.Type
Description
An object of the coder.descriptor.types.Matrix
class describes a variable
in the generated code that is of a matrix type. The
coder.descriptor.types.Matrix
class is a subclass of the coder.descriptor.types.Type
class.
Properties
Identifier
— Identifier used in generated code
character vector
Identifier used in generated code for the corresponding modeling element, specified as a character vector.
Data Types: char
Name
— Name of data type represented in Simulink®
character vector
Name of the data type that is represented in Simulink, specified as a character vector.
Data Types: char
ReadOnly
— Whether type qualifier contains const
1 | 0
Whether the type qualifier contains const
, specified as
1
or 0
. If you cannot change the value of
the variable during execution, the variable is preceded by the
const
keyword as the type qualifier in the generated code.
This property returns 1
if the type qualifier contains
const
. This property returns 0
if the type
qualifier does not contain const
.
Data Types: logical
Volatile
— Whether type qualifier contains volatile
1 | 0
Whether the type qualifier contains volatile
, specified as
1
or 0
. If you cannot change the value of
the variable during execution, the variable is preceded by the
volatile
keyword as the type qualifier in the generated code.
This property returns 1
if the type qualifier contains
volatile
. This property returns 0
if the
type qualifier does not contain volatile
.
Data Types: logical
BaseType
— Data type of matrix elements
coder.descriptor.types.Type
Data type of the matrix elements, specified as a
coder.descriptor.types.Type
object. Each element has the same
type.
Data Types: coder.descriptor.types.Type
Dimensions
— Dimensions of matrix
integer vector
The dimensions of the matrix, specified as an integer vector. For example, for a
3-by-4 matrix, this property has the value [3 4]
.
Version History
Introduced in R2024a
See Also
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)