| Fixed-Point Toolbox™ | ![]() |
q = unitquantizer(...)
q = unitquantizer(...) constructs a unitquantizer object, which is the same as a quantizer object in all respects except that its quantize method quantizes numbers within eps(q) of +1 to exactly +1.
See quantizer for parameters.
In this example, a vector x is quantized by a unitquantizer object u .
u = unitquantizer([4 3]); x = (0.8:.1:1.2)'; y = quantize(u,x); z = [x y] e = eps(u)
This quantization outputs an array containing the original values of x and the values of x that were quantized by the unitquantizer object u. The output also includes e, the value of eps(u).
z =
0.8000 0.7500
0.9000 1.0000
1.0000 1.0000
1.1000 1.0000
1.2000 1.0000
e =
0.1250
quantize, quantizer, unitquantize
![]() | unitquantize | unshiftdata | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |