Create Simulink.NumericType object
describing floating-point data type
a = float('half')
a = float('single')
a = float('double')
a = float('half') returns a Simulink.NumericType
object that describes the data type of an IEEE® half (16 total bits, 5 exponent bits).
a = float('single') returns a Simulink.NumericType object
that describes the data type of an IEEE single (32 total bits,
8 exponent bits).
a = float('double') returns a Simulink.NumericType object
that describes the data type of an IEEE double (64 total bits,
11 exponent bits).
Note
float is a legacy function. In new code, use fixdt
instead. In existing code, replace float('half') with
fixdt('half'), float('single') with
fixdt('single'), and float('double') with
fixdt('double').
Define an IEEE single data type.
>> a = float('single')
a =
NumericType with properties:
DataTypeMode: 'Single'
IsAlias: 0
DataScope: 'Auto'
HeaderFile: ''
Description: ''