Undo filter coefficient and gain changes caused by normalize
denormalize(hq) reverses the coefficient changes you make when you use normalize with hq. The filter coefficients do not change if you call denormalize(hq) before you use normalize(hq). Calling denormalize more than once on a filter does not change the coefficients after the first denormalize call.
Make a quantized filter hq and normalize the filter coefficients. After normalizing the coefficients, restore them to their original values by reversing the effects of the normalize function.
d=fdesign.highpass('n,F3dB',14,0.45); hd =design(d,'butter'); hd.arithmetic='fixed'; normalize(hd) NormSOSMatrix = hd.sosMatrix; denormalize(hd) eqSOSMatrices = isequal(NormSOSMatrix,hd.sosMatrix); % returns a 0