quantize
Quantize numeric data using quantizer object
Description
uses the y = quantize(q,x)quantizer object q to
quantize x.
When
xis a numeric array, each element ofxis quantized. The outputyis returned as a built-in double.When
xis a cell array, each numeric element of the cell array is quantized. The fields of outputyare returned as built-in doubles.When
xis a structure, each numeric field ofxis quantized. The fields of outputyare 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.


