quantizenumeric
R2026bQuantize numeric data
Syntax
Description
quantizes the value specified in y = quantizenumeric(x,s,w,f)x using signedness
s, word length w, and fraction length
f.
Tip
Use the quantizenumeric function when you want to
simulate full-precision arithmetic with doubles and then add quantization at
certain steps in your algorithm without casting to fixed-point types.
In R2026b:
quantizes the value specified in y = quantizenumeric(x,T)x using the numerictype specified in
T.
Examples
Input Arguments
Output Arguments
Tips
Use
quantizenumericwhen you want to simulate full-precision arithmetic with doubles and then add quantization at certain steps in your algorithm without casting to fixed-point types.When designing fixed-point algorithms, use
cast,zeros,ones,eye, andsubsasgnto separate the core algorithm from data type definitions.
Extended Capabilities
Version History
Introduced in R2016aSee Also
quantizer | cast | numerictype | fimath

