isnumerictype

Determine whether input is numerictype object

Description

example

tf = isnumerictype(T) returns 1 (true) if T is a numerictype object. Otherwise, it returns 0 (false).

Examples

collapse all

Create a variable and determine whether it is a numerictype object.

T = numerictype
T =


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

q = quantizer
q =


        DataMode = fixed
       RoundMode = floor
    OverflowMode = saturate
          Format = [16  15]
tf = isnumerictype(q)
tf = logical
   0

Input Arguments

collapse all

Input array.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using MATLAB® Coder™.

Introduced before R2006a