| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Fixed-Point Toolbox |
| Contents | Index |
| Learn more about 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 | ![]() |

Learn how to apply early verification to your development process through these technical resources.
How much time do you spend on testing to ensure implementation meets system-level requirements?
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |