Quantcast

Documentation Center

  • Trial Software
  • Product Updates

denormalize

Undo filter coefficient and gain changes caused by normalize

Syntax

denormalize(hq)

Description

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.

Examples

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

See Also

Was this topic helpful?