This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.


Normalize filter numerator or feed-forward coefficients


g = normalize(hd)


normalize(hq) normalizes the filter numerator coefficients for a quantized filter to have values between -1 and 1. The coefficients of hq change — normalize does not copy hq and return the copy. To restore the coefficients of hq to the original values, use denormalize.

Note that for lattice filters, the feed-forward coefficients stored in the property lattice are normalized.

g = normalize(hd) normalizes the numerator coefficients for the filter hq to between -1 and 1 and returns the gain g due to the normalization operation. Calling normalize again does not change the coefficients. g always returns the gain returned by the first call to normalize the filter.


Create a direct form II quantized filter that uses second-order sections. Then use normalize to maximize the use of the range of representable coefficients.

hd.arithmetic ='fixed';                                                   

Check the filter coefficients. Note that InitialSOSMatrix(3,2)>1

InitialSOSMatrix = hd.sosMatrix;

Use normalize to modify the coefficients into the range between -1 and 1. The output g contains the gains applied to each section of the SOS filter.

g = normalize(hd);

None of the numerator coefficients exceed -1 or 1.

See Also

Introduced in R2011a

Was this topic helpful?