y = quantize(x) quantizes x using
these default values:
numerictype(true,16,15)
Floor rounding method
Wrap overflow action
The numerictype, rounding method, and overflow
action apply only during the quantization. The resulting value, quantized y,
does not have any fimath attached to it.
y = quantize(x,nt) quantizes x to
the specified numerictypent.
The rounding method and overflow action use default values.
y = quantize(x,nt,rm) quantizes x to
the specified numerictype, nt and
rounding method, rm. The overflow action uses
the default value.
y = quantize(x,nt,rm,oa) quantizes x to
the specified numerictype, nt,
rounding method, rm, and overflow action, oa.
yBP = quantize(x,s) quantizes x to
a binary-point, scaled fixed-point number. The s input
specifies the sign to be used in numerictype(s,16,15).
Unspecified properties use these default values:
WordLength 16
FractionLength 15
RoundingMethodFloor
OverflowActionWrap
yBP = quantize(x,s,wl) uses
the specified word length, wl. The fraction length
defaults to wl–1. Unspecified properties
use default values.
yBP = quantize(x,s,wl,fl) uses
the specified fraction length, fl. Unspecified
properties use default values.
yBP = quantize(x,s,wl,fl,rm) uses
the specified rounding method, rm. Unspecified
properties use default values.