quantize
Quantize numeric data using quantizer
object
Description
uses the y
= quantize(q
,x
)quantizer
object q
to
quantize x
.
When
x
is a numeric array, each element ofx
is quantized. The outputy
is returned as a built-in double.When
x
is a cell array, each numeric element of the cell array is quantized. The fields of outputy
are returned as built-in doubles.When
x
is a structure, each numeric field ofx
is quantized. The fields of outputy
are returned as built-in doubles.
quantize
does not change nonnumeric elements or fields of
x
, nor does it issue warnings for nonnumeric values.
The quantizer
object states max
,
min
, noverflows
, nunderflows
, and
noperations
are updated during the call to quantize
,
and running totals are kept until a call to reset
is made.