Filter Design Toolbox | ![]() ![]() |
Reset one or more quantizers, quantized filters, or quantized FFTs to their initial conditions
Syntax
Description
resets quantizer reset(q)
q
to its initial conditions. Works for quantized filters and quantized FFTs as well by replacing the quantizer with a quantized filter or quantized FFT in the command syntax.
reset(q1, q2,...)
resets the states of the quantizers q1
, q2
,...
. to the states they were in when you created them -- their initial conditions.
'max' - Maximum value before quantizing. 'min' - Minimum value before quantizing. 'noverflows' - Number of overflows. 'nunderflows' - Number of underflows. 'noperations' - Number of quantization operations performed.
reset(hq1,hq2,...)
resets the states of quantized filters hq1
, hq2
,...
to the states you set when you created them -- their initial conditions.
The states of a quantized filter are
'FilterStructure' - Structure of the filter 'ScaleValues' - Scale values between filter sections 'NumberOfSections' - Number of filter sections 'StatesPerSection' - Number of states in each filter section 'CoefficientFormat' - quantizer 'InputFormat' - quantizer 'OutputFormat' - quantizer 'MultiplicandFormat' - quantizer 'ProductFormat' - quantizer 'SumFormat' - quantizer
reset(f1,f2,...)
resets the states of quantized FFTs f1
, f2
,...
to the states you set when you created them -- their initial conditions.
The states of a quantized FFT are
'Radix' - Either 2 or 4 'Length' - Scalar integer, length of the FFT 'CoefficientFormat' - quantizer 'InputFormat' - quantizer 'OutputFormat' - quantizer 'MultiplicandFormat' - quantizer 'ProductFormat' - quantizer 'SumFormat' - quantizer 'NumberOfSections' - 4 'ScaleValues' - Vector of the scale values between FFT sections
Examples
q1 = quantizer('fixed','ceil','saturate',[4 3]) q2 = quantizer('double') y1 = quantize(q1, -1.2:.1:1.2 ) y2 = quantize(q2, -1.2:.1:1.2 ) q1, q2 reset(q1, q2) q1, q2
![]() | realmin | scalevalues | ![]() |