ufi
(Not recommended) Construct unsigned fixed-point numeric object
ufi
is not recommended. Use fi
instead.
Syntax
a = ufi
a = ufi(v)
a = ufi(v,w)
a = ufi(v,w,f)
a = ufi(v,w,slope,bias)
a = ufi(v,w,slopeadjustmentfactor,fixedexponent,bias)
Description
You can use the ufi
constructor function
in the following ways:
a = ufi
is the default constructor and returns an unsignedfi
object with no value, 16-bit word length, and 15-bit fraction length.a = ufi(v)
returns an unsigned fixed-point object with valuev
, 16-bit word length, and best-precision fraction length.a = ufi(v,w)
returns an unsigned fixed-point object with valuev
, word lengthw
, and best-precision fraction length.a = ufi(v,w,f)
returns an unsigned fixed-point object with valuev
, word lengthw
, and fraction lengthf
.a = ufi(v,w,slope,bias)
returns an unsigned fixed-point object with valuev
, word lengthw
,slope
, andbias
.a = ufi(v,w,slopeadjustmentfactor,fixedexponent,bias)
returns an unsigned fixed-point object with valuev
, word lengthw
,slopeadjustmentfactor
,fixedexponent
, andbias
.
fi
objects created by the ufi
constructor
function have the following general types of properties:
Note
fi
objects created by the ufi
constructor
function have no local fimath.
Examples
Extended Capabilities
Version History
Introduced in R2009b
See Also
fi
| fimath
| fipref
| isfimathlocal
| numerictype
| quantizer
| sfi