Main Content

coder.descriptor.types.Complex Class

Namespace: coder.descriptor.types
Superclasses: coder.descriptor.types.Type

Return information about variable of complex type

Since R2024a

Description

An object of the coder.descriptor.types.Complex class describes a variable in the generated code that is of a complex type. Generated C code represents complex types as structures. The coder.descriptor.types.Complex class is a subclass of the coder.descriptor.types.Type class.

Properties

expand all

Identifier used in generated code for the corresponding modeling element, specified as a character vector.

Data Types: char

Name of the data type that is represented in Simulink, specified as a character vector.

Data Types: char

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

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

Data type of the real and imaginary part of the complex number, specified as an object of coder.descriptor.types.Type type. Each part has the same numeric type. In C, this is represented as a structure.

Data Types: coder.descriptor.types.Type

Version History

Introduced in R2024a