fi
numerictype
Determine whether input is scaled double data type
tf = isscaleddouble(a)
tf = isscaleddouble(T)
example
tf = isscaleddouble(a) returns 1 (true) when the DataType property of fi object a is ScaledDouble. Otherwise, it returns 0 (false).
a
1
true
DataType
ScaledDouble
0
false
tf = isscaleddouble(T) returns 1 (true) when the DataType property of numerictype object T is ScaledDouble. Otherwise, it returns 0 (false).
T
collapse all
Create a fi object and determine whether its DataType property is set to ScaledDouble.
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
T = numerictype('DataType','ScaledDouble'); a = fi(pi,T)
a = 3.1416 DataTypeMode: Scaled double: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
tf = logical 1
Create a numerictype object and determine whether its DataType property is set to ScaledDouble.
T = numerictype
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
T = numerictype('DataType','ScaledDouble')
T = DataTypeMode: Scaled double: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
Input fi object, specified as a scalar, vector, matrix, or multidimensional array.
Data Types: fi
Input numerictype object, specified as a scalar.
isboolean | isdouble | isfixed | isfloat | isscaledtype | isscalingbinarypoint | isscalingslopebias | isscalingunspecified | issingle
isboolean
isdouble
isfixed
isfloat
isscaledtype
isscalingbinarypoint
isscalingslopebias
isscalingunspecified
issingle
You have a modified version of this example. Do you want to open this example with your edits?