Main Content

isscalingunspecified

Determine whether input has unspecified scaling

Description

tf = isscalingunspecified(a) returns 1 (true) if fi object a has a fixed-point or scaled double data type and its scaling has not been specified.

example

tf = isscalingunspecified(T) returns 1 (true) if numerictype object T has a fixed-point or scaled double data type and its scaling has not been specified.

example

Examples

collapse all

Create a numerictype object and determine whether it has unspecified scaling.

T1 = numerictype(0)
T1 =


          DataTypeMode: Fixed-point: unspecified scaling
            Signedness: Unsigned
            WordLength: 16
tf = isscalingunspecified(T1)
tf = logical
   1

T2 = numerictype(0,24,12,'DataType','ScaledDouble')
T2 =


          DataTypeMode: Scaled double: binary point scaling
            Signedness: Unsigned
            WordLength: 24
        FractionLength: 12
tf = isscalingunspecified(T2)
tf = logical
   0

Create a fi object and determine whether it has unspecified scaling.

a = fi(pi,1)
a = 
    3.1416

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 13
tf = isscalingunspecified(a)
tf = logical
   0

Input Arguments

collapse all

Input fi object, specified as a scalar, vector, matrix, or multidimensional array.

Data Types: fi

Input numerictype object, specified as a scalar.

Version History

Introduced in R2010b