Convert fi
object to unsigned 8-bit
integer
c = uint8(a)
c = uint8(a)
returns the built-in uint8
value
of fi
object a
, based on its
real world value. If necessary, the data is rounded-to-nearest and
saturated to fit into an uint8
.
This example shows the uint8
values of a
fi object.
a = fi([-pi 0.5 pi],0,8); c = uint8(a) c = 0 1 3