isfimath

Determine whether variable is fimath object

Description

example

tf = isfimath(F) returns 1 (true) if F is a fimath object. Otherwise, it returns 0 (false).

Examples

collapse all

Create a variable and determine whether it is a fimath object

F = fimath
F = 
        RoundingMethod: Nearest
        OverflowAction: Saturate
           ProductMode: FullPrecision
               SumMode: FullPrecision
tf = isfimath(F)
tf = logical
   1

T = numerictype
T =


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

A = fi([1 2 3 4])
A=1×4 object
     1     2     3     4

          DataTypeMode: Fixed-point: binary point scaling
            Signedness: Signed
            WordLength: 16
        FractionLength: 12

tf = isfimath(A)
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