主要内容

isscaleddouble

确定输入是否为定标双精度数据类型

说明

tf = isscaleddouble(a)fi 对象 aDataType 属性为 ScaledDouble 时返回 1 (true)。否则,返回 0 (false)。

示例

tf = isscaleddouble(T)numerictype 对象 TDataType 属性为 ScaledDouble 时返回 1 (true)。否则,返回 0 (false)。

示例

示例

全部折叠

创建一个 fi 对象并确定其 DataType 属性是否设置为 ScaledDouble

a = fi(pi)
a = 
    3.1416

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 13
tf = isscaleddouble(a)
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 = isscaleddouble(a)
tf = logical
   1

创建一个 numerictype 对象并确定其 DataType 属性是否设置为 ScaledDouble

T = numerictype
T =


          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 15
tf = isscaleddouble(T)
tf = logical
   0

T = numerictype('DataType','ScaledDouble')
T =


          DataTypeMode: Scaled double: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 15
tf = isscaleddouble(T)
tf = logical
   1

输入参数

全部折叠

输入 fi 对象,指定为标量、向量、矩阵或多维数组。

数据类型: fi

输入 numerictype 对象,指定为标量。

版本历史记录

在 R2008a 中推出